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"); |