Where can I find javascript native functions source code?

ASD picture ASD · Apr 24, 2012 · Viewed 9.2k times · Source

where can I find the source code of native js functions, for example I want to look at eval() function

Answer

jfriend00 picture jfriend00 · Apr 24, 2012

Both Chrome and Firefox are open source and you can look at the implementation of any part of the javascript engine in the source code for those products. Other browsers have their own implementation (like IE) that is not available to the public to look at.

The Chrome v8 javascript engine is here: http://code.google.com/p/v8/

The Firefox SpiderMonkey engine is here: https://developer.mozilla.org/en/SpiderMonkey

Warning, if you aren't already familiar with those products and their tools, it may take while to get familiar enough to find what you're looking for.