diff options
Diffstat (limited to 'js/src/jit-test/tests/debug/bug1602392.js')
-rw-r--r-- | js/src/jit-test/tests/debug/bug1602392.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/debug/bug1602392.js b/js/src/jit-test/tests/debug/bug1602392.js new file mode 100644 index 0000000000..e3e71bfc63 --- /dev/null +++ b/js/src/jit-test/tests/debug/bug1602392.js @@ -0,0 +1,19 @@ +// |jit-test| error:ReferenceError: iter is not defined +var g = newGlobal({newCompartment: true}); +g.parent = this; +g.eval("new Debugger(parent).onExceptionUnwind = function () {};"); +function* f1() { + for (const x of iter) { + yield x; + } +} +function f2() { + for (var i of [1, 2, 3]) { + for (var j of [4, 5, 6]) { + for (const k of f1()) { + break; + } + } + } +} +f2(); |