diff options
Diffstat (limited to 'js/src/jit-test/tests/generators/bug1491331.js')
-rw-r--r-- | js/src/jit-test/tests/generators/bug1491331.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/generators/bug1491331.js b/js/src/jit-test/tests/generators/bug1491331.js new file mode 100644 index 0000000000..2fe3770234 --- /dev/null +++ b/js/src/jit-test/tests/generators/bug1491331.js @@ -0,0 +1,11 @@ +let g = newGlobal({newCompartment: true}); +g.eval('function* f() { yield 123; }'); + +let dbg = Debugger(g); +dbg.onEnterFrame = frame => { + dbg.removeDebuggee(g); + dbg.addDebuggee(g); +}; + +let genObj = g.f(); +genObj.return(); |