diff options
Diffstat (limited to 'js/src/jit-test/tests/modules/bug-1245518.js')
-rw-r--r-- | js/src/jit-test/tests/modules/bug-1245518.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/modules/bug-1245518.js b/js/src/jit-test/tests/modules/bug-1245518.js new file mode 100644 index 000000000..3ba79645b --- /dev/null +++ b/js/src/jit-test/tests/modules/bug-1245518.js @@ -0,0 +1,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(); |