-
Notifications
You must be signed in to change notification settings - Fork 900
Closed
Labels
bugIssues considered a bugIssues considered a bug
Milestone
Description
Test case
'use strict';
({ 01: 1 });
Output
[object Object]
Expected behavior
SyntaxError: Old octal numbers prohibited in strict mode.
That must check old octal when Token.NUMBER.
rhino/src/org/mozilla/javascript/Parser.java
Lines 3154 to 3159 in 41e57c7
case Token.NUMBER: { | |
consumeToken(); | |
String s = ts.getString(); | |
if (this.inUseStrictDirective && ts.isNumberOldOctal()) { | |
reportError("msg.no.old.octal.strict"); | |
} |
But that haven't checked it objliteralProperty.
rhino/src/org/mozilla/javascript/Parser.java
Lines 3687 to 3690 in 41e57c7
case Token.NUMBER: | |
pname = new NumberLiteral( | |
ts.tokenBeg, ts.getString(), ts.getNumber()); | |
break; |
Metadata
Metadata
Assignees
Labels
bugIssues considered a bugIssues considered a bug