Skip to content

Commit 51a8e1d

Browse files
liqyanMylesBorins
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 9ae513a commit 51a8e1d

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
@@ -60,11 +60,7 @@
6060
NativeModule.require('internal/trace_events_async_hooks').setup();
6161
NativeModule.require('internal/inspector_async_hook').setup();
6262

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

7066
const browserGlobals = !process._noBrowserGlobals;

0 commit comments

Comments
 (0)