blob: b1d3ee9a543fca5f6a5d1a1c95f1de1034ef90e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
function foo(x) {
Math.max(...[x]);
}
with ({}) {}
for (let i = 0; i < 100; i++) {
foo(0);
}
let called = false;
const evil = { valueOf: () => { called = true; } };
foo(evil);
assertEq(called, true);
|