summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1177778.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-1177778.js')
-rw-r--r--js/src/jit-test/tests/gc/bug-1177778.js16
1 files changed, 16 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 000000000..4e70856c0
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-1177778.js
@@ -0,0 +1,16 @@
+if (!("setGCCallback" in this))
+ quit();
+
+setGCCallback({
+ action: "majorGC",
+ phases: "both"
+});
+var g = newGlobal();
+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();");
+