Skip to content

Fixed hasInvalidEscape implementation - #55373

Merged
Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
Andarist:fix/has-invalid-escape
Aug 14, 2023
Merged

Fixed hasInvalidEscape implementation#55373
Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
Andarist:fix/has-invalid-escape

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

Co-authored-by: Damien Engels <engels@google.com>
@typescript-botTypeScript Bot (typescript-bot) added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Aug 14, 2023
Comment threadsrc/compiler/utilities.ts Outdated
@graphemecluster

Copy link
Copy Markdown
Contributor

Oh, great that you spotted it – I overlooked that method.

@jakebailey

Copy link
Copy Markdown
Member

I'm thinking this one deserves a backport; Daniel Rosenwasser (@DanielRosenwasser) thoughts?

@jakebailey

Jake Bailey (jakebailey) commented Aug 14, 2023

Copy link
Copy Markdown
Member

Hm, no, this was broken in 5.1; I misremembered which release we're currently on. Though, maybe it's worth doing anyway.

@jakebailey

Copy link
Copy Markdown
Member

I'm also silly and didn't realize that the result of this bug is just "the generated code is worse", so, nevermind altogether then 😄

@jakebailey
Jake Bailey (jakebailey) merged commit 3855369 into microsoft:mainAug 14, 2023
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Template Literal Flags are confused for ContainsInvalidEscape causing tagged template expressions to be unnecessarily transpiled

4 participants

@Andarist@graphemecluster@jakebailey@typescript-bot