TypeScript/tests/baselines/reference/templateStringWithCommentsInArrowFunction.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

28 lines
386 B
TypeScript

//// [templateStringWithCommentsInArrowFunction.ts]
const a = 1;
const f1 = () =>
`${
// a
a
}a`;
const f2 = () =>
`${
// a
a
}`;
//// [templateStringWithCommentsInArrowFunction.js]
var a = 1;
var f1 = function () {
return "".concat(
// a
a, "a");
};
var f2 = function () {
return "".concat(
// a
a);
};