From 4d5818efe6671247c4819d824c8cc27cf8c0a83a Mon Sep 17 00:00:00 2001 From: Qingyan Li Date: Mon, 22 Jan 2018 16:39:25 +0800 Subject: [PATCH] lib: remove debugger dead code See commit 719247f --- lib/internal/bootstrap_node.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index b11f5901a1769c..31c27a8507b0fa 100644 --- a/lib/internal/bootstrap_node.js +++ b/lib/internal/bootstrap_node.js @@ -64,11 +64,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;