You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a template literals to create a string that contains an expression (${something}) the parser reports an error:
classBar{foo(){[1,2,3].forEach((a)=>{constvalid=`\${${a}}`;constvariable='123';// this is highlighted in red as broken// in valid, the second '{' and 'a' and the second '}' and the second '`' are also highlighted in red as broken});}}
I put the second comment after valid, because when adding that comment on the line of valid, the error does not spill into the line with variable anymore.
The text was updated successfully, but these errors were encountered:
ArneBab
changed the title
Escaped expressions containing a real expression in a template literal break the parser
Escaped expressions containing a real expression in a template literal inside a a lambda inside a class method break the parser
Oct 4, 2022
When using a template literals to create a string that contains an expression (
${something}
) the parser reports an error:I put the second comment after valid, because when adding that comment on the line of valid, the error does not spill into the line with variable anymore.
The text was updated successfully, but these errors were encountered: