| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fdc7d75 commit d6e8d03
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -689,8 +689,6 @@ Console.prototype.groupCollapsed = Console.prototype.group; | |||
| 689 | 689 | ||
| 690 | 690 | function initializeGlobalConsole(globalConsole) { | |
| 691 | 691 | globalConsole[kBindStreamsLazy](process); | |
| 692 | - globalConsole[kBindProperties](true, 'auto'); | ||
| 693 | - | ||
| 694 | 692 | const { | |
| 695 | 693 | namespace: { | |
| 696 | 694 | addSerializeCallback, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ const { | |||
| 21 | 21 | ||
| 22 | 22 | const { | |
| 23 | 23 | Console, | |
| 24 | + kBindProperties, | ||
| 24 | 25 | } = require('internal/console/constructor'); | |
| 25 | 26 | ||
| 26 | 27 | const globalConsole = { __proto__: {} }; | |
@@ -41,6 +42,8 @@ for (const prop of ReflectOwnKeys(Console.prototype)) { | |||
| 41 | 42 | ReflectDefineProperty(globalConsole, prop, desc); | |
| 42 | 43 | } | |
| 43 | 44 | ||
| 45 | + globalConsole[kBindProperties](true, 'auto'); | ||
| 46 | + | ||
| 44 | 47 | // This is a legacy feature - the Console constructor is exposed on | |
| 45 | 48 | // the global console instance. | |
| 46 | 49 | globalConsole.Console = Console; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments