]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/exit-after-int52-to-value.js
92ed1f85350250618066fbab293994a422fe9056
1 function foo(a
, b
, c
) {
8 function makeWeirdObject() {
10 result
["blah" + (counter
++)] = 42;
14 for (var i
= 0; i
< 100000; ++i
) {
15 var o
= makeWeirdObject();
16 foo({f:2000000000}, {f:2000000000}, {f:o
});
17 if (o
.f
!= 4000000000)
18 throw "Error: bad result: " + result
;
22 Number
.prototype.__defineSetter__("f", function(value
) { thingy
= value
; });
23 foo({f:2000000000}, {f:2000000000}, {f:42});
24 if (thingy
!= 4000000000)
25 throw "Error: bad result: " + thingy
;