diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-05 14:40:13 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-05 14:51:29 -0700 |
commit | 149562555c9bf56457dee9a1ad70c53ed670a776 (patch) | |
tree | f6217cf3c54ddbee03f37247a3c7c75203f868fd /deps/v8/test/mjsunit/math-sqrt.js | |
parent | f08720606757577d95bd09b48697c7decbf17f00 (diff) | |
download | android-node-v8-149562555c9bf56457dee9a1ad70c53ed670a776.tar.gz android-node-v8-149562555c9bf56457dee9a1ad70c53ed670a776.tar.bz2 android-node-v8-149562555c9bf56457dee9a1ad70c53ed670a776.zip |
Downgrade V8 to 3.1.8.25
There are serious performance regressions both in V8 and our own legacy
networking stack. Until we correct our own problems we are going back to the
old V8.
Diffstat (limited to 'deps/v8/test/mjsunit/math-sqrt.js')
-rw-r--r-- | deps/v8/test/mjsunit/math-sqrt.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/deps/v8/test/mjsunit/math-sqrt.js b/deps/v8/test/mjsunit/math-sqrt.js index 43fbf6b2dc..fb00d5ba8a 100644 --- a/deps/v8/test/mjsunit/math-sqrt.js +++ b/deps/v8/test/mjsunit/math-sqrt.js @@ -29,11 +29,7 @@ function test(expected_sqrt, value) { assertEquals(expected_sqrt, Math.sqrt(value)); - if (isFinite(value)) { - if (value === 0 && (1 / value) == -Infinity) { - // Math.pow(-0, 0.5) must be zero, but Math.sqrt(-0) is -0. - expected_sqrt = 0; - } + if (isFinite(value)) { assertEquals(expected_sqrt, Math.pow(value, 0.5)); } } |