Closed Bug 1112732 Opened 10 years ago Closed 1 year ago

\0 is the only valid numeric escape sequence in strict mode / template strings

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: caitpotter88, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5

Steps to reproduce:

http://jsfiddle.net/r3oycs9c/ (This works correctly in JSC, fails in V8 and SM)


Actual results:

SM will only produce a SyntaxError if the string appears to be an octal literal


Expected results:

SM should produce a SyntaxError for each tested case.

Reason:

There is no valid production for any numeric escape sequence that does not match `\ 0 [lookahead ∉ DecimalDigit]` --- \9 or \8 do not match CharacterEscapeSequence.
Blocks: test262
No longer blocks: test262
Severity: normal → S3

I think this is fixed.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.