]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/inverted-additive-subsumption.js
2 return ((x
+ 1) | 0) + (x
+ 1);
7 for (var i
= 0; i
< 100000; ++i
) {
9 if (result
!= (i
+ 1) * 2)
10 throw "Error: bad result for i = " + i
+ ": " + result
;
13 var result
= foo(2147483647);
14 if (result
!= ((2147483647 + 1) | 0) + (2147483647 + 1))
15 throw "Error: bad result for 2147483647: " + result
;