Skip to content

[deferred-reexports] Add syntax tests for export defer#5033

Open
caiolima wants to merge 1 commit intotc39:mainfrom
caiolima:deferred-reexports-syntax-support
Open

[deferred-reexports] Add syntax tests for export defer#5033
caiolima wants to merge 1 commit intotc39:mainfrom
caiolima:deferred-reexports-syntax-support

Conversation

@caiolima
Copy link
Copy Markdown
Contributor

Adds syntax validation tests for the deferred re-exports proposal (https://github.com/tc39/proposal-deferred-reexports):

  • 6 valid syntax tests covering permitted forms: named re-exports (single, multiple, renamed, renamed-to-default), namespace re-export, and re-export with import attributes
  • 5 invalid syntax tests for early errors in module context: bare star, missing from clause, local declarations, default export, variable declarations
  • 1 script-context rejection test under test/language/global-code/

Also adds the deferred-reexports feature flag to features.txt.

Refs: #5010

Adds syntax validation tests for the deferred re-exports proposal
(https://github.com/tc39/proposal-deferred-reexports):

- 6 valid syntax tests covering permitted forms:
  named re-exports (single, multiple, renamed, renamed-to-default),
  namespace re-export, and re-export with import attributes
- 5 invalid syntax tests for early errors in module context:
  bare star, missing from clause, local declarations, default export,
  variable declarations
- 1 script-context rejection test under test/language/global-code/

Also adds the `deferred-reexports` feature flag to features.txt.

Refs: tc39#5010
@caiolima caiolima requested a review from a team as a code owner April 16, 2026 12:43
@nicolo-ribaudo nicolo-ribaudo added the awaiting stage 2.7 Supports a "Stage 2" feature label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting stage 2.7 Supports a "Stage 2" feature needs review

3 participants