-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
With the following code:
let data = `
hello
${now}
goodbye
`
an error is generated: Cannot read property 'sliceStart' of undefined
. However when the interpolation portion is has a character in front and back, everything works as expected.
let data = `
hello
p${now}p
goodbye
`
Is it expected behavior that template literals can't be the online thing on a single line?
Metadata
Metadata
Assignees
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue