Lifting template literal restriction S4
Proposal details
- Stage: Stage 4
- Status: Finished
- ECMAScript edition: ES2018
- Synchronized: Aug 28, 2026
- 中文译文 · Source repository
Proposal overview
This proposal aims to lift the restriction on escape sequences in template literals, allowing invalid escapes to be used in tagged templates without causing a SyntaxError. It changes the interpretation so that tagged templates receive raw strings, including invalid escape sequences, enabling more flexible use cases.
Note
The README below comes from the upstream repository and may contain outdated stage or status metadata. Use the proposal details above as the current source of truth.
Template Literals Revision
For details see the proposal.