Sign in
webkit
/
WebKit
/
19e52add6f30e26c5fff78e2223e0618385a5a3d
/
.
/
JSTests
/
stress
/
dfg-parseIntResult-should-check-for-negative-zero.js
blob: 5c8381ed2a88d140209e77d6f5168f652fb06d20 [
file
] [
log
] [
blame
]
function
assertEq
(
x
,
y
)
{
if
(
x
!=
y
)
throw
"FAILED: expect "
+
y
+
", actual "
+
x
;
}
noInline
(
assertEq
);
function
test
()
{
assertEq
(
1.0
/
parseInt
(
"-0.0"
),
"-Infinity"
);
}
noInline
(
test
);
for
(
let i
=
0
;
i
<
10000
;
++
i
)
test
();