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