Description[parser] Forbid \08 in strict strings and in untagged templates
This was never legal; the spec only allows '\0' in strict-mode strings or templates
when not followed by a decimal digit. Previously we were only enforcing that it
not be followed by an _octal_ digit.
This was already fixed for numeric literals, but not for escape sequences in strings.
BUG=v8:6504
Review-Url: https://codereview.chromium.org/2950633002
Cr-Commit-Position: refs/heads/master@{#46046}
Committed: https://chromium.googlesource.com/v8/v8/+/b102540e44a72157098014a20399193a461153d2
Patch Set 1 #Patch Set 2 : Add test for legality in sloppy mode #Patch Set 3 : Add test for octal in directive before use-strict #
Messages
Total messages: 13 (7 generated)
|