-
Notifications
You must be signed in to change notification settings - Fork 30k
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
[v11.x] backport warning handler refactoring #26670
Conversation
cc @BridgeAR |
@joyeecheung this seems to fail some tests. |
hmm, I just realized we can't just semi-backport #25828 like this, because currently there is no way for the JS land to precisely know about the invalid deprecation that don't exit the process directly (
I am leaning towards 2, because it doesn't seem to hurt much to not exit the process with some combinations of options that probably should be unused by now. |
Huh, wait, looks like even before #25828 there was already no way from C++ to tell the difference between @refack The additional patch should also shim |
In addition, shim `process._deprecatedDebugBrk` in pre-execution. This is a non-semver-major v11.x backport for nodejs#25828. Refs: nodejs#25828
Since we should treat the node-inspect as third-party user code. PR-URL: nodejs#26466 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Since it depends on environment variables. PR-URL: nodejs#26466 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
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: nodejs#26466 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
14f81c6
to
95a3844
Compare
In addition, shim `process._deprecatedDebugBrk` in pre-execution. This is a non-semver-major v11.x backport for nodejs#25828. PR-URL: nodejs#26670 Refs: nodejs#25828
Landed the first commit in |
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
#25828.
Refs: #25828
process: call
prepareMainThreadExecution
innode inspect
Since we should treat the node-inspect as third-party
user code.
PR-URL: #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: #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: #26466
Reviewed-By: Anna Henningsen anna@addaleax.net
Reviewed-By: Ruben Bridgewater ruben@bridgewater.de
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes