Commit 57323e8
console: move the inspector console wrapping in a separate file
Move the wrapping of the inspector console in a separate file
for clarity. In addition, save the original console from the
VM explicitly via an exported property
`require('internal/console/inspector').consoleFromVM`
that `require('inspector').console` can alias to it later,
instead of hanging the original console onto `per_thread.js`
during bootstrap and counting on that `per_thread.js`
only gets evaluated once and gets cached.
PR-URL: #24709
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent b549058 commit 57323e8Copy full SHA for 57323e8
File tree
Expand file treeCollapse file tree
5 files changed
+84
-55
lines changedOpen diff view settings
Filter options
- lib
- internal
- bootstrap
- console
Expand file treeCollapse file tree
5 files changed
+84
-55
lines changedOpen diff view settings
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
16 | 15 | |
17 | 16 | |
18 | 17 | |
| ||
103 | 102 | |
104 | 103 | |
105 | 104 | |
106 | | - |
| 105 | + |
| 106 | + |
| 107 | + |
107 | 108 | |
108 | 109 | |
Collapse file
lib/internal/bootstrap/node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js+15-53Lines changed: 15 additions & 53 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
121 | 121 | |
122 | 122 | |
123 | 123 | |
124 | | - |
125 | | - |
126 | 124 | |
127 | 125 | |
128 | 126 | |
| ||
486 | 484 | |
487 | 485 | |
488 | 486 | |
489 | | - |
490 | | - |
491 | | - |
| 487 | + |
| 488 | + |
| 489 | + |
| 490 | + |
| 491 | + |
492 | 492 | |
493 | 493 | |
494 | 494 | |
495 | | - |
| 495 | + |
496 | 496 | |
497 | 497 | |
498 | | - |
| 498 | + |
| 499 | + |
| 500 | + |
| 501 | + |
| 502 | + |
| 503 | + |
| 504 | + |
| 505 | + |
499 | 506 | |
500 | 507 | |
501 | 508 | |
| ||
570 | 577 | |
571 | 578 | |
572 | 579 | |
573 | | - |
574 | | - |
575 | | - |
576 | | - |
577 | | - |
578 | | - |
579 | | - |
580 | | - |
581 | | - |
582 | | - |
583 | | - |
584 | | - |
585 | | - |
586 | | - |
587 | | - |
588 | | - |
589 | | - |
590 | | - |
591 | | - |
592 | | - |
593 | | - |
594 | | - |
595 | | - |
596 | | - |
597 | | - |
598 | | - |
599 | | - |
600 | | - |
601 | | - |
602 | | - |
603 | | - |
604 | | - |
605 | | - |
606 | | - |
607 | | - |
608 | 580 | |
609 | 581 | |
610 | 582 | |
| ||
683 | 655 | |
684 | 656 | |
685 | 657 | |
686 | | - |
687 | | - |
688 | | - |
689 | | - |
690 | | - |
691 | | - |
692 | | - |
693 | | - |
694 | | - |
695 | | - |
696 | | - |
697 | 658 | |
698 | 659 | |
699 | 660 | |
| ||
704 | 665 | |
705 | 666 | |
706 | 667 | |
| 668 | + |
707 | 669 | |
708 | 670 | |
709 | 671 | |
|
Collapse file
lib/internal/console/inspector.js
Copy file name to clipboard+53Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
Collapse file
+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
387 | 387 | |
388 | 388 | |
389 | 389 | |
| 390 | + |
| 391 | + |
| 392 | + |
| 393 | + |
| 394 | + |
| 395 | + |
| 396 | + |
| 397 | + |
| 398 | + |
| 399 | + |
| 400 | + |
390 | 401 | |
391 | 402 | |
392 | 403 | |
| ||
406 | 417 | |
407 | 418 | |
408 | 419 | |
| 420 | + |
409 | 421 | |
410 | 422 | |
411 | 423 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
98 | 98 | |
99 | 99 | |
100 | 100 | |
| 101 | + |
101 | 102 | |
102 | 103 | |
103 | 104 | |
|
0 commit comments