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