Closed
Description
The compiler started adding empty strings around values in template literals. Technically doesn't break anything, but adds a redundant operation.
Example:
Js.log(`${1->Js.Int.toString}${2->Js.Int.toString}`)
Output:
console.log("" + (1).toString() + "" + (2).toString() + "");
Before:
console.log((1).toString() + (2).toString());
Context: DZakh/sury#1 (comment), #5514 (comment)
Metadata
Metadata
Assignees
Labels
No labels