Fix typo in math-sqrt.js

Review URL: http://codereview.chromium.org/6696109

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7372 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
lrn@chromium.org 2011-03-25 13:48:17 +00:00
parent 62c512e436
commit 1a15a9e6a9

View File

@ -30,7 +30,7 @@
function test(expected_sqrt, value) {
assertEquals(expected_sqrt, Math.sqrt(value));
if (isFinite(value)) {
if ((1 / value) != -Infinity) {
if ((1 / value) == -Infinity) {
// Math.pow(-0, 0.5) must be zero, but Math.sqrt(-0) is -0.
expected_sqrt = 0;
}