-
Notifications
You must be signed in to change notification settings - Fork 44
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
Named export #97
Comments
Cc @3cp |
This looks like a new change in syntax. estree/estree#202 |
FYI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
It seems that Meriyah does not comply with the AST standard when having named export, e.g. export * as x from 'a'.
First of all, it creates a ExportNamedDeclaration where it stored an ExportNamespaceSpecifier in the specifiers array. The last one is unknown according to the specifications. If you compare it to Acorn, which seems to do it the right way, then you should create an ExportAllDeclaration and then set the exported property to 'x'.
If you look at the specifications, then you will see that this is the correct way to do it:
https://github.com/estree/estree/blob/master/es2020.md#exportalldeclaration
-Thomas
The text was updated successfully, but these errors were encountered: