Yishu Fang
Yishu Fang

Reputation: 9978

How does Console in Chrome Developer Tool get implemented?

How does Console in Chrome Developer Tool get implemented?

Does it get implemented by calling eval() for every code snippet that has been passed in?

Upvotes: 0

Views: 61

Answers (1)

mr. rogers
mr. rogers

Reputation: 71

When Chrome's Javascript interpreter is compiling JS code to machine code, it converts console.log to the appropriate internal API.

Upvotes: 1

Related Questions