Skip to content

Escape apparent substitution in synthesized NoSubstitutionTemplateLiterals#32580

Merged
andrewbranch merged 2 commits intomicrosoft:masterfrom
andrewbranch:bug/32515
Aug 5, 2019
Merged

Escape apparent substitution in synthesized NoSubstitutionTemplateLiterals#32580
andrewbranch merged 2 commits intomicrosoft:masterfrom
andrewbranch:bug/32515

Conversation

@andrewbranch
Copy link
Copy Markdown
Member

Fixes #32515

The issue was in re-printing a NoSubstitutionTemplateLiteral with an escaped would-be substitution in it: `this is \${not} a substitution`. The node text simply becomes this is ${not} a substitution, and when we were re-writing that to a new node, we were printing that text as-is, when we needed to insert a backslash before the ${.

@andrewbranch andrewbranch requested a review from rbuckton July 26, 2019 19:19
@andrewbranch andrewbranch changed the title Bug/32515 Escape apparent substitution in synthesized NoSubstitutionTemplateLiterals Jul 26, 2019
@andrewbranch andrewbranch merged commit c1e0db7 into microsoft:master Aug 5, 2019
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debug Failure. False expression: Token end is child end

2 participants