cd0434aa76
* fix(39744): make template literals more spec compliant * Add evaluation test for template literals * Add test for template literals with source map
28 lines
386 B
TypeScript
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);
|
|
};
|