Index: test/mjsunit/math-sqrt.js |
diff --git a/test/mjsunit/math-sqrt.js b/test/mjsunit/math-sqrt.js |
index 06250a6b5b1d8c0e2f9b1dafa79e87ff763ded69..43fbf6b2dc8bccc3b03b680824631f6d15a83e50 100644 |
--- a/test/mjsunit/math-sqrt.js |
+++ b/test/mjsunit/math-sqrt.js |
@@ -30,7 +30,7 @@ |
function test(expected_sqrt, value) { |
assertEquals(expected_sqrt, Math.sqrt(value)); |
if (isFinite(value)) { |
- if ((1 / value) == -Infinity) { |
+ if (value === 0 && (1 / value) == -Infinity) { |
// Math.pow(-0, 0.5) must be zero, but Math.sqrt(-0) is -0. |
expected_sqrt = 0; |
} |