FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

module: migrate to script context based host defined options by legendecas · Pull Request #44923 · nodejs/node · GitHub

/ node Public

module: migrate to script context based host defined options - #44923

Closed
legendecas wants to merge 3 commits into
nodejs:mainfrom
legendecas:vm/host-defined-options
Closed

module: migrate to script context based host defined options#44923
legendecas wants to merge 3 commits into
nodejs:mainfrom
legendecas:vm/host-defined-options

Conversation

legendecas commented Oct 8, 2022
edited
Loading

Copy link
Copy Markdown
Member

This is not ready to be reviewed properly. Just a preview of the solution.

deps: v8: [runtime] Store host-defined options in the context

CR-URL: https://chromium-review.googlesource.com/c/v8/v8/+/3172764

module: migrate to script context based host defined options

This allows the host-defined options to be an arbitrary JavaScript value
so that the module/script wrapper object can be used as the host-defined
options instead. In this way, we can move away from the id-based module
tables and fixes the problem that the scripts can out lives the module
wrapper objects.

Fixes: #43681
Fixes: #43205
Fixes: #44438

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/v8-update

nodejs-github-bot added needs-ci PRs that need a full CI run. v8 engine Issues and PRs related to the V8 dependency. labels Oct 8, 2022

SimenB commented Oct 11, 2022

Copy link
Copy Markdown
Member

I'm beyond happy to see movement on this issue more than a year and a half after it was pointed to as a blocker of stabilization of vm ESM 🎉

Copy link
Copy Markdown
Contributor

Can this PR get landed before the v8 team decides to adopt your change? @legendecas

Copy link
Copy Markdown
Member Author

@ywave620 that's not in accord with the working process. I don't think we should land this before the v8 CL gets landed first.

targos commented Nov 8, 2022

Copy link
Copy Markdown
Member

@legendecas What's the status on the V8 side?

Copy link
Copy Markdown
Member Author

@targos thanks for the ping. I'll reach out to Camillo to see the next steps.

This allows the host-defined options to be an arbitrary JavaScript value
so that the module/script wrapper object can be used as the host-defined
options instead. In this way, we can move away from the id-based module
tables and fixes the problem that the scripts can out lives the module
wrapper objects.
legendecas force-pushed the vm/host-defined-options branch from 54f0d90 to 438df3b Compare November 23, 2022 17:29
legendecas closed this Oct 23, 2023

Copy link
Copy Markdown
Member Author

#48510 fixed the crashes with an alternative approach.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. v8 engine Issues and PRs related to the V8 dependency.

Projects

None yet

5 participants


Back | FazBrowse Home | New Git URL