diff options
Diffstat (limited to 'deps/v8/test/mjsunit/parse-int-float.js')
-rw-r--r-- | deps/v8/test/mjsunit/parse-int-float.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/parse-int-float.js b/deps/v8/test/mjsunit/parse-int-float.js index ad2275e661..b9620ff6c7 100644 --- a/deps/v8/test/mjsunit/parse-int-float.js +++ b/deps/v8/test/mjsunit/parse-int-float.js @@ -36,9 +36,12 @@ assertEquals(-63, parseInt(' -077')); assertEquals(3, parseInt('11', 2)); assertEquals(4, parseInt('11', 3)); +assertEquals(4, parseInt('11', 3.8)); assertEquals(0x12, parseInt('0x12')); assertEquals(0x12, parseInt('0x12', 16)); +assertEquals(0x12, parseInt('0x12', 16.1)); +assertEquals(0x12, parseInt('0x12', NaN)); assertEquals(12, parseInt('12aaa')); |