lib: remove debugger dead code

PR-URL: https://github.com/nodejs/node/pull/18426
Refs: 719247ff95
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Qingyan Li 2018-01-22 16:39:25 +08:00 committed by Ruben Bridgewater
parent d3841ec872
commit e4fc6d44c5
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -61,11 +61,7 @@
NativeModule.require('internal/trace_events_async_hooks').setup();
NativeModule.require('internal/inspector_async_hook').setup();
// Do not initialize channel in debugger agent, it deletes env variable
// and the main thread won't see it.
if (process.argv[1] !== '--debug-agent')
_process.setupChannel();
_process.setupChannel();
_process.setupRawDebug();
const browserGlobals = !process._noBrowserGlobals;