Debian Codegraph @

js/src/jit-test/tests/warp/bug1789821.js

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