Debian Codegraph @

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

raw
1 evalInFrame = function(global) {
2 dbgGlobal = newGlobal({newCompartment: true});
3 dbg = new dbgGlobal.Debugger();
4 return function(upCount, code) {
5 dbg.addDebuggee(global);
6 frame = dbg.getNewestFrame().older;
7 frame.eval(code);
8 }
9 }(this);
10 m = parseModule(`
11 function g() { return this.hours = 0; }
12 evalInFrame.call(0, 0, "g()")
13 `);
14 moduleLink(m);
15 moduleEvaluate(m);