Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
stress
/
fiat-double-to-int52-then-fail-to-fold.js
blob: b6e5277929f5df2ad0e0819f8b98f941768b8ce2 [
file
] [
log
] [
blame
]
function
foo
()
{
return
fiatInt52
(
Math
.
sqrt
(
2
))
+
1
;
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
{
var
result
=
foo
();
if
(
result
!=
Math
.
sqrt
(
2
)
+
1
)
throw
"Error: bad result: "
+
result
;
}