Index: test/mjsunit/parse-int-float.js |
diff --git a/test/mjsunit/parse-int-float.js b/test/mjsunit/parse-int-float.js |
index 5a9b6f33ccb59aea61ab7e080a8c2abec5b8389e..a0f50392303f80ef7f54f588174a0d71879c3ea0 100644 |
--- a/test/mjsunit/parse-int-float.js |
+++ b/test/mjsunit/parse-int-float.js |
@@ -114,3 +114,12 @@ assertEquals(state, "throwingString"); |
state = null; |
try { parseInt(throwingString, throwingRadix); } catch (e) {} |
assertEquals(state, "throwingString"); |
+ |
+// And finally, check that the Harmony additions to the Number |
+// constructor is available: |
+assertTrue("parseInt" in Number); |
+assertTrue("parseFloat" in Number); |
+assertSame( Number.parseInt, parseInt); |
+assertSame(Number.parseFloat, parseFloat); |
+assertEquals(Number.parseFloat('0.1'), parseFloat('0.1')); |
+assertEquals(Number.parseInt('0xea'), parseInt('0xEA')); |