Browse Source

inspector: fix console with inspector disabled

PR-URL: https://github.com/nodejs/node/pull/14489
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
v6
Timothy Gu 7 years ago
parent
commit
17547c4762
No known key found for this signature in database GPG Key ID: 7FE6B095B582B0D4
  1. 3
      lib/internal/bootstrap_node.js

3
lib/internal/bootstrap_node.js

@ -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))

Loading…
Cancel
Save