summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-debuggees-32.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/debug/Debugger-debuggees-32.js')
-rw-r--r--js/src/jit-test/tests/debug/Debugger-debuggees-32.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/debug/Debugger-debuggees-32.js b/js/src/jit-test/tests/debug/Debugger-debuggees-32.js
new file mode 100644
index 0000000000..4d5bab9e1a
--- /dev/null
+++ b/js/src/jit-test/tests/debug/Debugger-debuggees-32.js
@@ -0,0 +1,13 @@
+let g = newGlobal({newCompartment: true});
+g.eval('function* f() { yield 123; }');
+
+let dbg = Debugger(g);
+let genObj = g.f();
+
+dbg.onEnterFrame = frame => {
+ frame.onStep = () => {};
+ dbg.removeDebuggee(g);
+ dbg.addDebuggee(g);
+};
+
+genObj.return();