Skip to content

[v11.x] backport warning handler refactoring

process: handle node --debug deprecation in pre-execution

In addition, shim process._deprecatedDebugBrk in pre-execution. This is a non-semver-major v11.x backport for https://github.com/nodejs/node/pull/25828.

Refs: https://github.com/nodejs/node/pull/25828

process: call prepareMainThreadExecution in node inspect

Since we should treat the node-inspect as third-party user code.

PR-URL: https://github.com/nodejs/node/pull/26466 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

process: set up process warning handler in pre-execution

Since it depends on environment variables.

PR-URL: https://github.com/nodejs/node/pull/26466 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

process: handle process.env.NODE_V8_COVERAGE in pre-execution

Since this depends on environment variable, and the worker threads do not need to persist the variable value because they cannot switch cwd.

PR-URL: https://github.com/nodejs/node/pull/26466 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

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

Merge request reports

Loading