Created
March 10, 2014 22:17
-
-
Save syg/9475646 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var g = newGlobal(); | |
var dbg = new Debugger; | |
g.eval("function f(d) { g(d); }"); | |
g.eval("function g(d) { h(d); }"); | |
g.eval("function h(d) { while (d) { } return d; }"); | |
timeout(1, function () { | |
dbg.addDebuggee(g); | |
var frame = dbg.getNewestFrame(); | |
while (frame) { | |
print(frame.repr); | |
frame = frame.older; | |
} | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment