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

fix(ext/node): node:vm contexts #23202

Merged
merged 13 commits into from
Apr 9, 2024
Merged

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Apr 3, 2024

Implement contextified objects in node:vm

Fixes #23186
Fixes #22395
Fixes #20607
Fixes #18299
Fixes #19395
Fixes #18315
Fixes #18319
Fixes #23183

@littledivy littledivy marked this pull request as ready for review April 5, 2024 17:29
@littledivy littledivy requested a review from bartlomieju April 5, 2024 17:30
ext/node/ops/vm.rs Show resolved Hide resolved
ext/node/ops/vm_internal.rs Show resolved Hide resolved
ext/node/ops/vm_internal.rs Show resolved Hide resolved
ext/node/ops/vm_internal.rs Show resolved Hide resolved
tests/unit_node/vm_test.ts Show resolved Hide resolved
tests/unit_node/vm_test.ts Show resolved Hide resolved
@bartlomieju
Copy link
Member

Can we add an integration test that ensures we don't leak memory when vm.Scripts are GCed?

@littledivy littledivy changed the title feat(ext/node): node:vm contexts fix(ext/node): node:vm contexts Apr 8, 2024
@littledivy littledivy requested a review from bartlomieju April 8, 2024 12:27
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, but I asked @mmastrac for second pair of eyes to review

Copy link
Contributor

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

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

LGTM!

@littledivy littledivy merged commit fad12b7 into denoland:main Apr 9, 2024
17 checks passed
@littledivy littledivy deleted the vm_rewrite branch April 9, 2024 15:54
satyarohith pushed a commit that referenced this pull request Apr 11, 2024
Implement contextified objects in `node:vm`

Fixes #23186
Fixes #22395
Fixes #20607
Fixes #18299
Fixes #19395
Fixes #18315
Fixes #18319
Fixes #23183
littledivy added a commit to littledivy/deno that referenced this pull request Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants