Template strings transpile incorrectly #2033
Labels
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
PR: Spec Compliance 👓
A type of pull request used for our changelog categories
The following:
`${foo}`
transpiles to:
However, concatenating to an empty string actually calls
valueOf
, nottoString
, and as such is not correct. See the following JS:It should transpile to:
The text was updated successfully, but these errors were encountered: