Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[squash] use individual inspectorSetup
  • Loading branch information
BridgeAR committed Sep 1, 2017
commit 5db3a1b2c3d21fccb53753ed598b3e900d9892eb
6 changes: 5 additions & 1 deletion lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,15 @@
return wrappedConsole;
}
});
// Setup inspector command line API
setupInspector(originalConsole, wrappedConsole, Module);
}

function setupInspector(originalConsole, wrappedConsole, Module) {
const { addCommandLineAPI, consoleCall } = process.binding('inspector');
if (!consoleCall) {
return;
}
// Setup inspector command line API
const { makeRequireFunction } = NativeModule.require('internal/module');
const path = NativeModule.require('path');
const cwd = tryGetCwd(path);
Expand Down