Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: test/mjsunit/parse-int-float.js

Issue 7830036: Optimize isFinite and isNaN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Made the change general by moving putting it in the NUMBER_IS_FINITE macro. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/harmony/debug-blockscopes.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/parse-int-float.js
diff --git a/test/mjsunit/parse-int-float.js b/test/mjsunit/parse-int-float.js
index 2e4f6484370f2329213dd53ea5e85f8d7fabc7da..a4f09df9b4a24d6ff7ffdc30316183760fa7bde8 100644
--- a/test/mjsunit/parse-int-float.js
+++ b/test/mjsunit/parse-int-float.js
@@ -100,17 +100,4 @@ assertTrue(isNaN(parseFloat(0/0)));
assertEquals(Infinity, parseFloat(1/0), "parseFloat Infinity");
assertEquals(-Infinity, parseFloat(-1/0), "parseFloat -Infinity");
-var state;
-var throwingRadix = { valueOf: function() { state = "throwingRadix"; throw null; } };
-var throwingString = { toString: function() { state = "throwingString"; throw null; } };
-state = null;
-try { parseInt('123', throwingRadix); } catch (e) {}
-assertEquals(state, "throwingRadix");
-state = null;
-try { parseInt(throwingString, 10); } catch (e) {}
-assertEquals(state, "throwingString");
-
-state = null;
-try { parseInt(throwingString, throwingRadix); } catch (e) {}
-assertEquals(state, "throwingString");
« no previous file with comments | « test/mjsunit/harmony/debug-blockscopes.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698