chakra-core / chakra-core/ChakraCore
Lift template escape sequence restrictions in tagged templates
Open
ECMAScript Spec
Proposal
Task
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
The [template literal revision proposal](https://github.com/tc39/proposal-template-literal-revision) reached [stage 3](https://github.com/tc39/proposals) in July.
This allows
```
(function(strs) {
return strs[0] === undefined && strs.raw[0] === '\\u{invalid}\\1\\xGG';
})`\u{invalid}\1\xGG`; // true
```
etc. Invalid escapes remain a syntax error in untagged templates.
Contributor guide
Assessment
This issue has not been assessed yet.