]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/not-cell-use.js
1 function foo(a
, b
, c
) {
2 return (a
|0) + (b
|0) + (c
|0);
13 return foo(42, void 0, void 0) + a
+ b
+ c
+ d
+ e
+ f
+ g
;
19 for (var i
= 0; i
< 100000; ++i
) {
21 f:i
* 3, g:i
- 1, h:(i
/ 2)|0, i:-i
, j:13 + ((i
/ 5)|0), k:14 - ((i
/ 6)|0),
24 var expected
= 42 + i
* 3 + i
- 1 + ((i
/ 2)|0) - i
+ 13 + ((i
/ 5)|0) + 14 -
27 if (result
!= expected
)
28 throw "Error: for iteration " + i
+ " expected " + expected
+ " but got " + result
;