Skip to content

Conversation

alimoradian1
Copy link

Summary

This PR adds support for import attributes (with and assert clauses) on re-export statements, aligning the grammar with the ECMAScript specification.

Changes

  • Modified grammar.js to include an optional import_attribute in the export_statement rule for re-exports.
  • Updated the import_attribute rule to recognize both with and assert keywords for broader compatibility.
  • Added new test cases to test/corpus/statements.txt to verify the new syntax is parsed correctly.

All existing tests continue to pass.

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.

1 participant