Skip to content

lib: make the builtInObjects set deterministic during bootstrap#33049

Closed
joyeecheung wants to merge 2 commits into
nodejs:mainfrom
joyeecheung:deterministic-builtins
Closed

lib: make the builtInObjects set deterministic during bootstrap#33049
joyeecheung wants to merge 2 commits into
nodejs:mainfrom
joyeecheung:deterministic-builtins

Conversation

@joyeecheung

Copy link
Copy Markdown
Member

Make this list explicit instead of filtering over globalThis so that
this list is deterministic during the bootstrap regardless of:
a) Wether this file is required when the context is going to be
serialized, or what the V8 flags are. V8 does not add
SharedArrayBuffer, Atomics, WebAssembly, and other flaggable
globals e.g. harmony ones to a context that will be serialized.
b) Wether this file is required before or after bootstrap
(Node.js adds things like Buffer, URL, etc.)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked PRs that are blocked by other issues or PRs. stalled Issues and PRs that are stalled. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants