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
Downlevel emit for template strings should use 'void 0' not 'undefined' #38430
In ES5, undefined is an identifier and not a keyword and can be redeclared. In ES3, undefined isn't declared. In general we emit void 0 in these cases.
This can be easily addressed by changing createTemplateCooked in ~/src/compiler/transformers/taggedTemplate.ts to return createVoidZero() instead of createIdentifier("undefined") when a template contains an invalid escape sequence..
Activity
lissein commentedon May 9, 2020
Hi, I'll work on this if it's ok.
Merge pull request #38439 from lissein/void-0-template-strings
DanielRosenwasser commentedon May 12, 2020
Thanks Lissein (@lissein)!
Merge remote-tracking branch 'upstream/master'