summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/strictParseIntOctal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/strictParseIntOctal.js')
-rw-r--r--js/src/jit-test/tests/basic/strictParseIntOctal.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/strictParseIntOctal.js b/js/src/jit-test/tests/basic/strictParseIntOctal.js
new file mode 100644
index 0000000000..59412f3179
--- /dev/null
+++ b/js/src/jit-test/tests/basic/strictParseIntOctal.js
@@ -0,0 +1,16 @@
+"use strict";
+
+assertEq(parseInt("08"), 8);
+assertEq(parseInt("09"), 9);
+assertEq(parseInt("014"), 14);
+assertEq(parseInt("0xA"), 10);
+assertEq(parseInt("00123"), 123);
+
+for (var i = 0; i < 5; i++)
+{
+ assertEq(parseInt("08"), 8);
+ assertEq(parseInt("09"), 9);
+ assertEq(parseInt("014"), 14);
+ assertEq(parseInt("0xA"), 10);
+ assertEq(parseInt("00123"), 123);
+}