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;
693
693
Console . prototype . groupCollapsed = Console . prototype . group ;
694
694
695
695
function initializeGlobalConsole ( globalConsole ) {
696
- globalConsole [ kBindStreamsLazy ] ( process ) ;
697
- globalConsole [ kBindProperties ] ( true , 'auto' ) ;
698
-
699
696
const {
700
697
namespace : {
701
698
addSerializeCallback,
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ const {
21
21
22
22
const {
23
23
Console,
24
+ kBindProperties,
25
+ kBindStreamsLazy,
24
26
} = require ( 'internal/console/constructor' ) ;
25
27
26
28
const globalConsole = { __proto__ : { } } ;
@@ -41,6 +43,9 @@ for (const prop of ReflectOwnKeys(Console.prototype)) {
41
43
ReflectDefineProperty ( globalConsole , prop , desc ) ;
42
44
}
43
45
46
+ globalConsole [ kBindProperties ] ( true , 'auto' ) ;
47
+ globalConsole [ kBindStreamsLazy ] ( process ) ;
48
+
44
49
// This is a legacy feature - the Console constructor is exposed on
45
50
// the global console instance.
46
51
globalConsole . Console = Console ;
You can’t perform that action at this time.
0 commit comments