diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index b93b817aba1bd2..86875566b0896a 100644 --- a/lib/internal/bootstrap_node.js +++ b/lib/internal/bootstrap_node.js @@ -261,7 +261,9 @@ enumerable: true, get: function() { if (!console) { - console = installInspectorConsole(originalConsole); + console = originalConsole === undefined ? + NativeModule.require('console') : + installInspectorConsole(originalConsole); } return console; }