- Untagged template literals don't call
@@toPrimitive correctly
- Tagged template literals need to have the entire
TemplateStringsArray frozen
- The
cooked is currently still mutable
- The
TemplateStringsArray must be cached per call site
As a bonus, there's a small size win that you can get if the cooked and raw are the same (there are no \ escape sequences), see babel/babel#7352.
@@toPrimitivecorrectlyconcatgrouping)TemplateStringsArrayfrozencookedis currently still mutableTemplateStringsArraymust be cached per call siteAs a bonus, there's a small size win that you can get if the
cookedandraware the same (there are no\escape sequences), see babel/babel#7352.