Skip to content

Conversation

@guybedford
Copy link
Collaborator

@guybedford guybedford commented Jan 3, 2026

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
Copy link

jasnell commented Jan 8, 2026

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.

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.

3 participants