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

Destructuring breaks if no space between 'var' and pattern #75

Open
webbedspace opened this issue Jan 27, 2015 · 0 comments
Open

Destructuring breaks if no space between 'var' and pattern #75

webbedspace opened this issue Jan 27, 2015 · 0 comments

Comments

@webbedspace
Copy link

The code function e(){ var[a,b]=[1,2];return a} wrongly compiles to

function e(){ vara = (b = [1,2])[0], b = b[1];return a}

which, as you can see, mangles the var keyword.

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

1 participant