Skip to content

Destructured default doesn't recognize variable reference #64

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

Closed
nzakas opened this issue May 9, 2015 · 2 comments
Closed

Destructured default doesn't recognize variable reference #64

nzakas opened this issue May 9, 2015 · 2 comments

Comments

@nzakas
Copy link
Contributor

nzakas commented May 9, 2015

In the following code:

const x = 1;
const {y = x} = {};

The x on the second line isn't recognized by escope as a reference to x on the first line.

Tested with 3.0.1 using ES6 mode.

@michaelficarra
Copy link
Member

Fixed by #65.

@nzakas
Copy link
Contributor Author

nzakas commented May 19, 2015

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

No branches or pull requests

2 participants