Sign in
webkit
/
WebKit
/
6b7c45f751131450b1675ef5b4b89fb3a0e35aba
/
.
/
JSTests
/
microbenchmarks
/
negative-zero-negate.js
blob: 7e7f3c71ca9865f5079fe5aaa92d01102f31b084 [
file
] [
log
] [
blame
]
function
foo
()
{
var
x
=
1
;
var
s
;
var
i
;
for
(
i
=
0
;
i
<
2001
;
i
++)
{
if
(
i
==
2000
)
x
=
0
;
s
=
1
/(-
x
);
}
return
s
;
}
var
x
=
(
1
/(-
0
)).
toString
();
var
y
=
foo
().
toString
();
if
(
x
!=
y
)
throw
"Error: bad result: "
+
y
;