Skip to content

Commit 9f158ac

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 02eab11 commit 9f158ac

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

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

6864
const browserGlobals = !process._noBrowserGlobals;

0 commit comments

Comments
 (0)