]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/strict-to-this-int.js
4 return (a
+ b
) + result
+ this;
12 Number
.prototype.valueOf = function() { return x
; };
14 function test(this_
, a
, b
, x_
) {
16 var result
= foo
.call(this_
, a
, b
);
17 if (result
!= (a
+ b
) * 2 + x_
)
18 throw "Error: bad result: " + result
;
21 for (var i
= 0; i
< 100000; ++i
)
24 test(5, 2000000000, 2000000000, 1);
25 test(5, 1073741774, 1073741774, 1000);