chakra-core / chakra-core/ChakraCore

Lift template escape sequence restrictions in tagged templates

Open
#2,344 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.