Skip to content

Commit e4fc6d4

Browse files
liqyanBridgeAR
authored andcommitted
lib: remove debugger dead code
PR-URL: #18426 Refs: 719247f Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent d3841ec commit e4fc6d4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/internal/bootstrap_node.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@
6161
NativeModule.require('internal/trace_events_async_hooks').setup();
6262
NativeModule.require('internal/inspector_async_hook').setup();
6363

64-
// Do not initialize channel in debugger agent, it deletes env variable
65-
// and the main thread won't see it.
66-
if (process.argv[1] !== '--debug-agent')
67-
_process.setupChannel();
68-
64+
_process.setupChannel();
6965
_process.setupRawDebug();
7066

7167
const browserGlobals = !process._noBrowserGlobals;

0 commit comments

Comments
 (0)