TypeScript/tests/baselines/reference/templateStringWithEmbeddedTemplateString.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
290 B
TypeScript

//// [templateStringWithEmbeddedTemplateString.ts]
var x = `123${ `456 ${ " | " } 654` }321 123${ `456 ${ " | " } 654` }321`;
//// [templateStringWithEmbeddedTemplateString.js]
var x = "123".concat("456 ".concat(" | ", " 654"), "321 123").concat("456 ".concat(" | ", " 654"), "321");