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

feat: vm rewrite #24596

Merged
merged 1 commit into from
Aug 6, 2024
Merged

feat: vm rewrite #24596

merged 1 commit into from
Aug 6, 2024

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Jul 15, 2024

rewrite vm implementation to increase compat. vm.Module+importModuleDynamically callbacks should be added in a followup.

@devsnek devsnek added node compat node API polyfill Related to various "node:*" modules APIs node:vm Issues related to node:vm module ci-draft Run the CI on draft PRs. labels Jul 15, 2024
@devsnek devsnek force-pushed the vm-rewrite branch 3 times, most recently from 4a68335 to 7685a07 Compare August 6, 2024 06:56
@devsnek devsnek marked this pull request as ready for review August 6, 2024 07:02
@devsnek devsnek requested a review from littledivy August 6, 2024 07:06
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

scope: &mut v8::HandleScope<'a, ()>,
object_template: v8::Local<v8::ObjectTemplate>,
mode: ContextInitMode,
microtask_queue: *mut v8::MicrotaskQueue,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
microtask_queue: *mut v8::MicrotaskQueue,
microtask_queue: Option<NonNull<v8::MicrotaskQueue>>,

@devsnek devsnek merged commit 897159d into main Aug 6, 2024
17 checks passed
@devsnek devsnek deleted the vm-rewrite branch August 6, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-draft Run the CI on draft PRs. node API polyfill Related to various "node:*" modules APIs node compat node:vm Issues related to node:vm module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants