Skip to content

Commit

Permalink
inspector: fix console with inspector disabled
Browse files Browse the repository at this point in the history
PR-URL: #14489
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
TimothyGu committed Aug 5, 2017
1 parent 365b2e3 commit 17547c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@
function installInspectorConsole(globalConsole) {
const wrappedConsole = NativeModule.require('console');
const inspector = process.binding('inspector');
if (!inspector.consoleCall) {
return wrappedConsole;
}
const config = {};
for (const key of Object.keys(wrappedConsole)) {
if (!globalConsole.hasOwnProperty(key))
Expand Down

0 comments on commit 17547c4

Please sign in to comment.