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

var assignment destructuring minifies to wrong syntax #710

Closed
anilanar opened this issue Oct 19, 2017 · 0 comments
Closed

var assignment destructuring minifies to wrong syntax #710

anilanar opened this issue Oct 19, 2017 · 0 comments
Labels
bug Confirmed bug has PR Has an open PR that fixes this issue

Comments

@anilanar
Copy link

Input Code

if (false) {
  var {x, y} = foo();
}

Actual Output

var{x,y};

Expected Output

var x,y;

Details

This bug is annoying especially when you disable scoped variables due to Safari bugs related to for statements with scoped variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug has PR Has an open PR that fixes this issue
Projects
None yet
Development

No branches or pull requests

2 participants