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