Closed bakkot closed 6 years ago
We currently accept)
(function(){'use strict'; '\08'})
but the only strict-mode production allowing '\0' is EscapeSequence :: 0 [lookahead ∉ DecimalDigit], which ought to forbid it.
EscapeSequence :: 0 [lookahead ∉ DecimalDigit]
We correctly forbid 08 as a number literal in strict code; this is just about strings.
08
Noctal escapes should also be rejected in template literals.
We currently accept)
but the only strict-mode production allowing '\0' is
EscapeSequence :: 0 [lookahead ∉ DecimalDigit]
, which ought to forbid it.We correctly forbid
08
as a number literal in strict code; this is just about strings.