What does {[native code]} mean in WebKit Inspector?

For example, open the JS console and enter toString<Enter> .

You will receive the following:

 function toString() { [native code] } 

Compare this to:

 function foo() { return 'bar'; } foo 

which produces:

 function foo() { return 'bar'; } 

Does this mean that its API for an interpreter that directly executes some internal procedures in C or something else is used to program it when calling this method?

+4
source share
1 answer

[native code] is just a label that indicates that information about the implementation of the function body is processed by the browser β€œinitially”.

+5
source

Source: https://habr.com/ru/post/1432528/


All Articles