Description[parser] Lift template literal invalid escape restriction
This implements the proposal at
https://github.com/tc39/proposal-template-literal-revision
staged behind a flag --harmony-template-escapes. The proposal allows
invalid octal, unicode, and hexadecimal escape sequences to appear in
tagged template literals, instead of being a syntax error. These have
a 'cooked' value of 'undefined', but are still accessible through the
'raw' property.
BUG=v8:5546
Review-Url: https://codereview.chromium.org/2665513002
Cr-Commit-Position: refs/heads/master@{#43384}
Committed: https://chromium.googlesource.com/v8/v8/+/18e4c46de5c5269ed1a23219a9cefbd7d3a2a449
Patch Set 1 #Patch Set 2 : Update test262.status #Patch Set 3 : rebase #Patch Set 4 : rebase harder #
Total comments: 10
Patch Set 5 : address comments #
Total comments: 2
Patch Set 6 : rebase #Patch Set 7 : fix error and test more #Patch Set 8 : handle octals correctly #Patch Set 9 : add test #
Total comments: 9
Patch Set 10 : rebase #Patch Set 11 : rebase actually #Patch Set 12 : address comments #
Total comments: 5
Patch Set 13 : address comments #Patch Set 14 : rebase again, almost certainly not necessary #
Total comments: 2
Patch Set 15 : remove DCHECK_EQ to avoid compile errors in release builds #Patch Set 16 : reintroduce DCHECK_EQ #
Messages
Total messages: 47 (24 generated)
|