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

Fix #4451 and 4481: default in export statements #4483

Merged
merged 2 commits into from
Apr 3, 2017

Conversation

GeoffreyBooth
Copy link
Collaborator

The lexer was treating every appearance of default within an export statement as the default keyword, leading to #4451. This PR treats default as a keyword in an export statement only when it follows export or as, or is already covered by the grammar as part of an ExportSpecifier, which fixes #4451.

We had the ability to import a module member named default, but not export one. This adds that ability, fixing #4481. Tests for these cases are included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

“unexpected default” occurred when {default: null} in export default, but {"default": null}.
2 participants