Skip to content

initial spec draft - #13

Merged
guybedford merged 2 commits into
mainfrom
spec
Jan 10, 2026
Merged

guybedford merged 2 commits into
mainfrom
spec

Conversation

@guybedford

@guybedford guybedford commented Jan 3, 2026 •

Copy link
Copy Markdown
Collaborator

Posting up a very initial spec for early feedback.

The approach taken here is instead of reinventing all functions (HostLoadImportedModuleSync / ContinueDynamicImportSync / FinishLoadingImportedModuleSync etc etc), we instead replace the PromiseCapability with a CompletionRecord which can be dynamically mutated to effectively share the function paths for sync and async.

This seems slightly simpler, although we need to weigh the pros and cons on a per spec method basis going forward.

@guybedford
guybedford marked this pull request as ready for review January 6, 2026 21:00
@jasnell

jasnell commented Jan 8, 2026

Copy link
Copy Markdown

Looks ok for Stage 2. There are likely some issues we'll need to contend with for Stage 2.7... in particular, the behavior with circular sync imports.

@guybedford
guybedford merged commit 11fc8e9 into main Jan 10, 2026
2 checks passed
@guybedford
guybedford deleted the spec branch January 10, 2026 19:39
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.

2 participants