Debian Codegraph @

js/src/jit-test/tests/debug/bug1602392.js

raw
1 // |jit-test| error:ReferenceError: iter is not defined
2 var g = newGlobal({newCompartment: true});
3 g.parent = this;
4 g.eval("new Debugger(parent).onExceptionUnwind = function () {};");
5 function* f1() {
6 for (const x of iter) {
7 yield x;
8 }
9 }
10 function f2() {
11 for (var i of [1, 2, 3]) {
12 for (var j of [4, 5, 6]) {
13 for (const k of f1()) {
14 break;
15 }
16 }
17 }
18 }
19 f2();