[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / microbenchmarks / arguments-strict-mode.js
1 function foo() {
2     "use strict";
3     return [...arguments];
4
5 }
6
7 noInline(foo);
8
9 for (var i = 0; i < 200000; ++i) {
10     var result = foo(i);
11     if (result[0] != i)
12         throw "Error: bad result: " + result;
13 }