Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

inspect native code [duplicate]

Tags:

javascript

Is there any way by which I can explore native code in Javascript? I want to see what Function() class has in it.

like image 930
alter Avatar asked May 20 '10 10:05

alter


2 Answers

You could have a look at the source code of an open source browser such as Firefox.

like image 191
Jesper Avatar answered Sep 21 '22 13:09

Jesper


I've always wanted to do this myself. On a side note, here's how to view assembly language code generated by the V8 JS engine for Chromium (I haven't tried it yet): How can I see the machine code generated by v8?

like image 33
Marc Kirkwood Avatar answered Sep 17 '22 13:09

Marc Kirkwood