TypeScript/tests/baselines/reference/templateStringInNewExpression.js
LowR cd0434aa76
fix(39744): make template literals more spec compliant (#45304)
* fix(39744): make template literals more spec compliant

* Add evaluation test for template literals

* Add test for template literals with source map
2021-10-13 12:03:31 -07:00

6 lines
228 B
TypeScript

//// [templateStringInNewExpression.ts]
new `abc${0}abc`(`hello ${0} world`, ` `, `1${2}3`);
//// [templateStringInNewExpression.js]
new ("abc".concat(0, "abc"))("hello ".concat(0, " world"), " ", "1".concat(2, "3"));