Commit 77ae03f
lib: create global console properties at snapshot build time
It is safe to create the console properties for the global
console at snapshot build time. Streams must still be created
lazily however because they need special synchronization for
the handles.
PR-URL: #51700
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>1 parent b046712 commit 77ae03fCopy full SHA for 77ae03f
File tree
Expand file treeCollapse file tree
2 files changed
+3
-2
lines changedOpen diff view settings
Filter options
- lib/internal/console
Expand file treeCollapse file tree
2 files changed
+3
-2
lines changedOpen diff view settings
Collapse file
lib/internal/console/constructor.js
Copy file name to clipboardExpand all lines: lib/internal/console/constructor.js-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
689 | 689 | |
690 | 690 | |
691 | 691 | |
692 | | - |
693 | | - |
694 | 692 | |
695 | 693 | |
696 | 694 | |
|
Collapse file
lib/internal/console/global.js
Copy file name to clipboardExpand all lines: lib/internal/console/global.js+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
| 24 | + |
24 | 25 | |
25 | 26 | |
26 | 27 | |
| ||
41 | 42 | |
42 | 43 | |
43 | 44 | |
| 45 | + |
| 46 | + |
44 | 47 | |
45 | 48 | |
46 | 49 | |
|
0 commit comments