File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -693,9 +693,6 @@ Console.prototype.error = Console.prototype.warn;
693693Console . prototype . groupCollapsed = Console . prototype . group ;
694694
695695function initializeGlobalConsole ( globalConsole ) {
696- globalConsole [ kBindStreamsLazy ] ( process ) ;
697- globalConsole [ kBindProperties ] ( true , 'auto' ) ;
698-
699696 const {
700697 namespace : {
701698 addSerializeCallback,
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ const {
2121
2222const {
2323 Console,
24+ kBindProperties,
25+ kBindStreamsLazy,
2426} = require ( 'internal/console/constructor' ) ;
2527
2628const globalConsole = { __proto__ : { } } ;
@@ -41,6 +43,9 @@ for (const prop of ReflectOwnKeys(Console.prototype)) {
4143 ReflectDefineProperty ( globalConsole , prop , desc ) ;
4244}
4345
46+ globalConsole [ kBindProperties ] ( true , 'auto' ) ;
47+ globalConsole [ kBindStreamsLazy ] ( process ) ;
48+
4449// This is a legacy feature - the Console constructor is exposed on
4550// the global console instance.
4651globalConsole . Console = Console ;
You can’t perform that action at this time.
0 commit comments