diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-03-08 16:25:47 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-03-12 03:00:17 +0300 |
commit | 728c939e57ec471bf0a114b86074829be622f421 (patch) | |
tree | ba3e832c1bc6a58f57a03a280b8171b2771c709b /lib/internal/main | |
parent | eb0bf8d3077f7fd4d09f187b8bb8290ec8f8171b (diff) |
process: delay process.argv[0] and process.argv0 handling
Since these depends on process runtime states, delay them until
pre-execution.
PR-URL: https://github.com/nodejs/node/pull/26517
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/internal/main')
-rw-r--r-- | lib/internal/main/worker_thread.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/internal/main/worker_thread.js b/lib/internal/main/worker_thread.js index 885d6dfcb1b..c5a729b5721 100644 --- a/lib/internal/main/worker_thread.js +++ b/lib/internal/main/worker_thread.js @@ -4,6 +4,7 @@ // message port. const { + patchProcessObject, setupCoverageHooks, setupWarningHandler, setupDebugEnv, @@ -41,6 +42,7 @@ const { const publicWorker = require('worker_threads'); +patchProcessObject(); setupDebugEnv(); const debug = require('util').debuglog('worker'); |