diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/debug/bug1240803.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/debug/bug1240803.js b/js/src/jit-test/tests/debug/bug1240803.js new file mode 100644 index 0000000000..ab1e0fb641 --- /dev/null +++ b/js/src/jit-test/tests/debug/bug1240803.js @@ -0,0 +1,20 @@ +// |jit-test| allow-oom; skip-if: !('oomAfterAllocations' in this) + +(function() { + g = newGlobal({newCompartment: true}) + dbg = new Debugger + g.toggle = function(d) { + if (d) { + dbg.addDebuggee(g); + dbg.getNewestFrame(); + oomAfterAllocations(2); + setBreakpoint; + } + } + g.eval("" + function f(d) { return toggle(d); }) + g.eval("(" + function() { + f(false); + f(true); + } + ")()") +})(); + |