We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if
Getting an "Unexpected token" error with code such as the following:
export function replaceRange(from, to) { if (from) [from, to] = [to, from] }
The error doesn't occur if braces are present.
The text was updated successfully, but these errors were encountered:
Specifically, the generated code looks like this:
export function replaceRange(from, to) { var assign; if (from) { (assign = [to, from], from = assign[0], to = assign[1] }) }
Which has mismatched brackets (the paren after the destructuring expression ended up before the brace)
Sorry, something went wrong.
See PR #153
Make sure closing parens and braces are added in the right order
8117b69
Issue #152
Fixed with 8117b69.
No branches or pull requests
Getting an "Unexpected token" error with code such as the following:
The error doesn't occur if braces are present.
The text was updated successfully, but these errors were encountered: