Debian Codegraph @

js/src/jit-test/tests/basic/spread-call-rest-lookup.js

raw
1 var count = 0;
2 var scope = {
3 get args() {
4 count++;
5 return "";
6 }
7 };
8
9 with (scope) {
10 [].push(...args);
11 }
12
13 // Ensure |args| is only looked up once.
14 assertEq(count, 1);