Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript parser is confused by a backtick in a string #2193

Closed
jakeweary opened this issue Jan 27, 2020 · 2 comments
Closed

JavaScript parser is confused by a backtick in a string #2193

jakeweary opened this issue Jan 27, 2020 · 2 comments

Comments

@jakeweary
Copy link

jakeweary commented Jan 27, 2020

Information:

If some string contains a backtick and there are template literals in the following code, it may invert parsing behavior: code parts are parsed as strings and strings are parsed as code.

if (foo(bar)) baz(); "`"; `foo`; `bar`; if (foo(bar)) baz(); `baz`;

image

@RunDevelopment
Copy link
Member

I'll close this because your issue is caused by #1492 and will be fixed by #2032.

We don't have a fix you could use right now. Sorry.

@jakeweary
Copy link
Author

Alright. I've tested #2032 on my code, it fixes the bug indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants