Closed
Bug 1112732
Opened 10 years ago
Closed 2 years ago
\0 is the only valid numeric escape sequence in strict mode / template strings
Categories
(Core :: JavaScript Engine, 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.
Reporter | ||
Comment 1•10 years ago
|
||
https://bugs.ecmascript.org/show_bug.cgi?id=3212 might change this
Related discussion: https://bugs.ecmascript.org/show_bug.cgi?id=3477
Updated•2 years ago
|
Severity: normal → S3
Comment 3•2 years ago
|
||
I think this is fixed.
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•