简体   繁体   中英

How can I find out the native code of javascript functions?

When I type setInterval into google chrome's developer tools it writes the following to the console

function setInterval() { [native code] }

How can I find out the code that should be in [native code] ?

setInterval() is implemented by the rendering engine.

In Webkit/Blink it's a call to a DOMWindow instance.

The most interesting bits are in DOMTimer.cpp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM