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

bootstrap: use different scripts to setup different configurations #30862

Closed
wants to merge 2 commits into from

Commits on Dec 14, 2019

  1. bootstrap: use different scripts to setup different configurations

    This patch splits the handling of `isMainThread` and
    `ownsProcessState` from conditionals in
    `lib/internal/bootstrap/node.js` into different scripts under
    `lib/internal/bootstrap/switches/`, and call them accordingly
    from C++ after `node.js` is run.
    
    This:
    
    - Creates a common denominator of the main thread and the worker
      thread bootstrap that can be snapshotted and shared by
      both.
    - Makes it possible to override the configurations on-the-fly.
    joyeecheung committed Dec 14, 2019
    Copy the full SHA
    a36cad6 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2019

  1. Copy the full SHA
    9d7ed12 View commit details
    Browse the repository at this point in the history