Sign in
webkit
/
WebKit
/
d0ac5b2877d01758b7af37b5e52d1cc2b4b6c4ea
/
.
/
LayoutTests
/
js
/
regress
/
script-tests
/
negative-zero-divide.js
blob: b610ca453614f5c448a2d9f8d36bce9e56f74fcc [
file
] [
log
] [
blame
]
function
foo
()
{
var
x
=
1
;
var
y
=
-
1
;
var
s
;
var
i
;
for
(
i
=
0
;
i
<
2001
;
i
++)
{
if
(
i
==
2000
)
x
=
0
;
s
=
1
/(
x
/
y
+(-
0
));
}
return
s
;
}
var
x
=
(
1
/(
0
/-
1
+(-
0
))).
toString
();
var
y
=
foo
().
toString
();
if
(
x
!=
y
)
throw
"Error: bad result: "
+
y
;