Skip to content

Commit

Permalink
Add test for octal literals in es3 strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JsonFreeman committed Aug 7, 2014
1 parent 72cf78f commit 0838158
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
==== tests/cases/conformance/parser/ecmascript5/StrictMode/octalLiteralInStrictModeES3.ts (1 errors) ====
"use strict";
03;

This comment has been minimized.

Copy link
@mihailik

mihailik Aug 7, 2014

Contributor

Need to test for -03, which SHOULD fail (it does not in the current implementation)
Also need to test for 009 which SHOULD NOT fail (it does in the current implementation)

This comment has been minimized.

Copy link
@JsonFreeman

JsonFreeman Aug 7, 2014

Author Contributor

See global comments

~~
!!! Octal literals are not allowed in strict mode.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";
03;

0 comments on commit 0838158

Please sign in to comment.