diff options
author | cjihrig <cjihrig@gmail.com> | 2020-03-13 06:24:01 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2020-03-15 20:29:34 +0300 |
commit | 9d1a3b6f608d864f3e4b1e8dc667f733f5acdcb8 (patch) | |
tree | bc2295a96760ba4ce99f26e9b03d48a70cc70352 /lib/internal/bootstrap | |
parent | 4c64e7c59a655142367a361bae873683208b9f9b (diff) |
doc,lib,src,test: make --experimental-report a nop
This commit makes the --experimental-report CLI flag a no-op.
PR-URL: https://github.com/nodejs/node/pull/32242
Fixes: https://github.com/nodejs/node/issues/26293
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'lib/internal/bootstrap')
-rw-r--r-- | lib/internal/bootstrap/pre_execution.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index 46af6c30e0d..3d5e0061daa 100644 --- a/lib/internal/bootstrap/pre_execution.js +++ b/lib/internal/bootstrap/pre_execution.js @@ -163,16 +163,11 @@ function setupStacktracePrinterOnSigint() { } function initializeReport() { - if (!getOptionValue('--experimental-report')) { - return; - } const { report } = require('internal/process/report'); - const { emitExperimentalWarning } = require('internal/util'); ObjectDefineProperty(process, 'report', { enumerable: false, configurable: true, get() { - emitExperimentalWarning('report'); return report; } }); @@ -187,10 +182,6 @@ function setupDebugEnv() { // This has to be called after initializeReport() is called function initializeReportSignalHandlers() { - if (!getOptionValue('--experimental-report')) { - return; - } - const { addSignalHandler } = require('internal/process/report'); addSignalHandler(); |