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

Improve handling of exported bindings #3504

Merged
merged 3 commits into from Oct 25, 2020

Conversation

jugglinmike
Copy link
Member

It might not look like it, but this is in support of ES2020's new production, export default as ns from ''; (tracking via gh-3486).

Extend consideration to include bindings created using
DestructuringBindingPattern.
Currently, the `setExported` method only makes the specified binding as
"used." This is unnecessary in this context because when `expression`
processes an IdentifierReference, it does the same. Remove the branch.
@coveralls
Copy link

coveralls commented Sep 21, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling 62f448f on jugglinmike:duplicate-exports into f5b0971 on jshint:v2.12.0.

Copy link
Member

@rwaldron rwaldron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love seeing the expected failures file shrinking.

@rwaldron rwaldron merged commit 9c7cb47 into jshint:v2.12.0 Oct 25, 2020
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 this pull request may close these issues.

None yet

3 participants