You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug createTemplateMiddle() and createTemplateTail() do not work with escaped chars #35374
When creating tagged template literals programmatically one can pass in cooked and raw text.
The raw text is then checked by rescanning it and checking it is the same as the cooked text.
There is a bug in this check. After an expression the next part will start with a closing brace }, which triggers the scanner to then search to the next ${ or to the end of the the backticked string. But the current code is looking for a ] rather than a }.
Thrown:
Error: Debug Failure. Invalid raw text
at createTemplateLiteralLikeNode (/Users/pete/dev/angular/angular/node_modules/typescript/lib/typescript.js:64078:33)
at Object.createTemplateMiddle (/Users/pete/dev/angular/angular/node_modules/typescript/lib/typescript.js:64092:20)
This affects the pre-TypeScript-7 JavaScript Compiler API (createTemplateMiddle). That API has been superseded by the TypeScript 7 API and is no longer being developed, so this issue cannot be addressed there.
Activity
fix(ivy): i18n - ensure that escaped chars are handled in localized s…
fix(ivy): i18n - ensure that escaped chars are handled in localized s…
fix(ivy): i18n - ensure that escaped chars are handled in localized s…
RyanCavanaugh commentedon Sep 3, 2026
This affects the pre-TypeScript-7 JavaScript Compiler API (
createTemplateMiddle). That API has been superseded by the TypeScript 7 API and is no longer being developed, so this issue cannot be addressed there.