Skip to content
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

More incremental work on new module registry impl #2546

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Aug 17, 2024

Adds in the part about ensuring ESM evaluation occurs outside of the IoContext if there is one.

Some context for newcomers: I've been slowly working on a new implementation of the module registry in workerd. This is a continuation of that work. Here I implement the bits of the code necessary to ensure that the module is evaluated outside of the IoContext if there is one.

This code currently is not used in production.

@jasnell jasnell requested a review from anonrig August 17, 2024 00:05
@jasnell jasnell requested review from a team as code owners August 17, 2024 00:05
@jasnell jasnell requested a review from mikea August 17, 2024 00:05
@jasnell jasnell force-pushed the jsnell/moar-new-module-registry-fun branch 2 times, most recently from 20b3891 to 825741d Compare August 17, 2024 18:38
@jasnell jasnell force-pushed the jsnell/moar-new-module-registry-fun branch from 825741d to 68e18d6 Compare August 26, 2024 14:30
Adds in the part about ensuring ESM evaluation occurs outside
of the IoContext if there is one.
This bit of code uses the node.js formatLog API to create formatted
output for things like console.log... it needs to be able to use
either module registry implementation.
@jasnell jasnell force-pushed the jsnell/moar-new-module-registry-fun branch from 68e18d6 to 0beb18d Compare August 26, 2024 15:23
@jasnell jasnell merged commit 5a05c73 into main Aug 26, 2024
8 of 10 checks passed
@jasnell jasnell deleted the jsnell/moar-new-module-registry-fun branch August 26, 2024 15:56
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