]> code.delx.au - gnu-emacs-elpa/blobdiff - tests/parser.el
Allow 0o octals in strict mode
[gnu-emacs-elpa] / tests / parser.el
index 136b97c5a23580553ea41d3ab00f34e87efe54f3..9f8ab811fd7e1266a9f526442ee0314880cb18d9 100644 (file)
@@ -320,6 +320,9 @@ the test."
   "'use strict';\nvar number = 0644;"
   :syntax-error "0644" :errors-count 1)
 
+(js2-deftest-parse function-strict-octal-allow-0o
+  "'use strict';\n0o644;" :reference "'use strict';\n420;")
+
 (js2-deftest-parse function-strict-duplicate-keys
   "'use strict';\nvar object = {a: 1, a: 2, 'a': 3, ['a']: 4, 1: 5, '1': 6, [1 + 1]: 7};"
   :syntax-error "a" :errors-count 4) ; "a" has 3 dupes, "1" has 1 dupe.