Hello there,
V8 internals seem to have classes and methods to manipulate and introspect
the stack, but they are not accessible through the public (v8.h) API. I'm
looking a for a way to give a meaningful stack trace
Consider this example:
function f() {
function f2() { MAKE.ME.FAIL; }
f2()
}
f()
Converting it and running in in Python gives
Traceback (most recent call last):
File "fail.py", line 5, in <module>
f()
File "fail.py", line 4, in f
f2()
File "fail.py", line 3, in f2
MAKE.ME.FAIL
NameError: global name 'MAKE' is not defined
while current V8 gives something like
fail.js:3: ReferenceError: MAKE is not defined
MAKE.ME.FAIL;
^
I'd like to be able to introspect the current stack frame, and look for
JavaScript frames and print out information about them. How could I do this
with the current V8 API ?
-- Sébastien
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---