[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / microbenchmarks / to-number-constructor-only-string.js
1 function test(value)
2 {
3     return Number(value);
4 }
5
6 var result = 0;
7 for (var i = 0; i < 1e4; ++i)
8     result = test(i.toString());
9 if (result !== 9999)
10     throw new Error(`bad result ${result}`);