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

Unescaped $ in template string throw unexpected EOF error #16

Closed
Conduitry opened this issue Jan 11, 2019 · 1 comment · Fixed by #18
Closed

Unescaped $ in template string throw unexpected EOF error #16

Conduitry opened this issue Jan 11, 2019 · 1 comment · Fixed by #18

Comments

@Conduitry
Copy link
Collaborator

Trying to transform the following valid javascript

let foo = `$`;

results in an exception from Shimport. As far as I can tell, the unescaped $ can appear anywhere in the string and cause this error. If an unescaped $ in a template string is not followed by a {, Shimport should just treat it like a regular character.

Rich-Harris added a commit that referenced this issue Apr 14, 2019
handle dollar in template string
@Rich-Harris
Copy link
Owner

Fixed in 0.0.15 — thanks

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

Successfully merging a pull request may close this issue.

2 participants