Sign in
webkit
/
WebKit
/
8811b522c4d9fd9fbebc2e2caf8f1ebff78163f9
/
.
/
JSTests
/
stress
/
fiat-double-to-int52.js
blob: 0697b60568a1e8ee90fbc4fe2ddb1c3896ed7be6 [
file
] [
log
] [
blame
]
var
array
=
new
Float64Array
(
1
);
array
[
0
]
=
42
;
function
foo
()
{
return
fiatInt52
(
array
[
0
])
+
1
;
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
{
var
result
=
foo
();
if
(
result
!=
43
)
throw
"Error: bad result: "
+
result
;
}