blob: 06508e7487a6739e5bf546d7f4a63596fd9379ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// |jit-test| error: TypeError: invalid assignment to const
function f() {
const g = newGlobal({newCompartment: true});
const dbg = new Debugger(g);
g.eval(`function f() {}`);
dbg.onEnterFrame = function(frame) {
[x, dbg] = [];
}
for (var i = 0; i < 5; i++) {
g.eval("f()");
}
}
f();
|