summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug-1245518.js
blob: 3ba79645b739bdcd1122e212027b26c3a0cfef7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();