diff options
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-1177778.js')
-rw-r--r-- | js/src/jit-test/tests/gc/bug-1177778.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1177778.js b/js/src/jit-test/tests/gc/bug-1177778.js new file mode 100644 index 0000000000..155763f3a2 --- /dev/null +++ b/js/src/jit-test/tests/gc/bug-1177778.js @@ -0,0 +1,15 @@ +// |jit-test| skip-if: !('setGCCallback' in this) + +setGCCallback({ + action: "majorGC", + phases: "both" +}); +var g = newGlobal({newCompartment: true}); +var dbg = new Debugger; +var gw = dbg.addDebuggee(g); +g.eval("function h() { debugger; }"); +dbg.onDebuggerStatement = function(hframe) { + var env = hframe.older.environment; +}; +g.eval("h();"); + |