Debian Codegraph @

js/src/jit-test/tests/cacheir/bug1772824.js

raw
1 function foo() { eval(); boundName += 1; }
2
3 boundName = 0;
4 for (var i = 0; i < 10; i++) {
5 eval("var x" + i + " = 0;");
6 foo();
7 }
8
9 // Redefine variable as const
10 evaluate(`
11 const boundName = 0;
12 for (var i = 0; i < 2; i++) {
13 try { foo(); } catch {}
14 }
15 `);