tslib
tslib copied to clipboard
fix: apply freezing to template object
This PR makes generated template string literals follow the ECMA-262 spec.
- https://tc39.es/ecma262/#sec-gettemplateobject
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
Please see https://github.com/microsoft/TypeScript/pull/51806 / https://github.com/microsoft/TypeScript/issues/51789; this change cannot be made in tslib first.