Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
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
;
}