diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/debug/bug1812979.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/debug/bug1812979.js b/js/src/jit-test/tests/debug/bug1812979.js new file mode 100644 index 0000000000..e6be4d0597 --- /dev/null +++ b/js/src/jit-test/tests/debug/bug1812979.js @@ -0,0 +1,14 @@ +// |jit-test| --fast-warmup; --no-threads +function foo(n) { + with ({}) {} + if (n == 9) { + enableTrackAllocations(); + var g = newGlobal({newCompartment: true}); + var dbg = g.Debugger(this); + dbg.getNewestFrame().older; + } +} +for (var i = 0; i < 10; i++) { + for (var j = 0; j < 20; j++) {} + foo(i); +} |