Mypal/js/src/jit-test/tests/modules/bug-1245518.js

16 lines
364 B
JavaScript

evalInFrame = function(global) {
dbgGlobal = newGlobal();
dbg = new dbgGlobal.Debugger();
return function(upCount, code) {
dbg.addDebuggee(global);
frame = dbg.getNewestFrame().older;
frame.eval(code);
}
}(this);
m = parseModule(`
function g() this.hours = 0;
evalInFrame.call(0, 0, "g()")
`);
m.declarationInstantiation();
m.evaluation();