mirror of
https://github.com/nodejs/node.git
synced 2025-05-22 17:34:41 +00:00
![]() 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. PR-URL: https://github.com/nodejs/node/pull/30862 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> |
||
---|---|---|
.. | ||
esm_loader.js | ||
execution.js | ||
per_thread.js | ||
policy.js | ||
promises.js | ||
report.js | ||
signal.js | ||
task_queues.js | ||
warning.js | ||
worker_thread_only.js |