Commit 422a063
process: allow StartExecution() to take a main script ID
The idea is to allow the C++ layer to run arbitrary scripts
as the main script. This paves the way for
- cctest of the execution of Node.js instances
- Earlier handling of per-process CLI options that affect
execution modes (those usually do not make sense for the
embedders).
- Targets like mkcodecache or mksnapshot.
Also moves the handling of `_third_party_main.js` into C++.
PR-URL: #25474
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>1 parent d7a07d8 commit 422a063Copy full SHA for 422a063
File tree
Expand file treeCollapse file tree
13 files changed
+93
-50
lines changedOpen diff view settings
Filter options
- lib/internal
- bootstrap
- process
- src
- test/message
Expand file treeCollapse file tree
13 files changed
+93
-50
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap/node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js+34-20Lines changed: 34 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
317 | 317 | |
318 | 318 | |
319 | 319 | |
320 | | - |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
321 | 351 | |
322 | 352 | |
323 | 353 | |
324 | 354 | |
325 | 355 | |
326 | 356 | |
327 | | - |
328 | | - |
329 | | - |
330 | | - |
331 | | - |
332 | | - |
333 | | - |
334 | | - |
335 | | - |
336 | | - |
337 | | - |
338 | | - |
339 | | - |
340 | | - |
341 | | - |
342 | | - |
343 | | - |
344 | | - |
| 357 | + |
| 358 | + |
345 | 359 | |
346 | | - |
| 360 | + |
347 | 361 | |
348 | 362 | |
349 | 363 | |
|
Collapse file
lib/internal/process/worker_thread_only.js
Copy file name to clipboardExpand all lines: lib/internal/process/worker_thread_only.js+2-13Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
118 | 118 | |
119 | 119 | |
120 | 120 | |
121 | | - |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | | - |
131 | | - |
132 | | - |
133 | 121 | |
134 | 122 | |
135 | | - |
| 123 | + |
| 124 | + |
136 | 125 | |
Collapse file
+35-3Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
647 | 647 | |
648 | 648 | |
649 | 649 | |
650 | | - |
| 650 | + |
| 651 | + |
| 652 | + |
| 653 | + |
| 654 | + |
| 655 | + |
| 656 | + |
| 657 | + |
| 658 | + |
| 659 | + |
| 660 | + |
| 661 | + |
| 662 | + |
| 663 | + |
| 664 | + |
| 665 | + |
| 666 | + |
| 667 | + |
| 668 | + |
| 669 | + |
| 670 | + |
| 671 | + |
651 | 672 | |
652 | 673 | |
653 | 674 | |
| ||
724 | 745 | |
725 | 746 | |
726 | 747 | |
727 | | - |
| 748 | + |
728 | 749 | |
729 | 750 | |
730 | 751 | |
| ||
734 | 755 | |
735 | 756 | |
736 | 757 | |
| 758 | + |
| 759 | + |
| 760 | + |
| 761 | + |
| 762 | + |
| 763 | + |
| 764 | + |
| 765 | + |
| 766 | + |
| 767 | + |
| 768 | + |
737 | 769 | |
738 | | - |
| 770 | + |
739 | 771 | |
740 | 772 | |
741 | 773 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
368 | 368 | |
369 | 369 | |
370 | 370 | |
371 | | - |
| 371 | + |
372 | 372 | |
373 | 373 | |
374 | 374 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
61 | 61 | |
62 | 62 | |
63 | 63 | |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
64 | 68 | |
65 | 69 | |
66 | 70 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
| 57 | + |
| 58 | + |
57 | 59 | |
58 | 60 | |
59 | 61 | |
|
Collapse file
+4-2Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
185 | 185 | |
186 | 186 | |
187 | 187 | |
188 | | - |
189 | | - |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
190 | 192 | |
191 | 193 | |
192 | 194 | |
|
Collapse file
test/message/error_exit.out
Copy file name to clipboardExpand all lines: test/message/error_exit.out+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | | - |
| 18 | + |
Collapse file
test/message/eval_messages.out
Copy file name to clipboardExpand all lines: test/message/eval_messages.out+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | | - |
| 13 | + |
14 | 14 | |
15 | 15 | |
16 | 16 | |
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
| 28 | + |
29 | 29 | |
30 | 30 | |
31 | 31 | |
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | | - |
| 42 | + |
43 | 43 | |
44 | 44 | |
45 | 45 | |
| ||
53 | 53 | |
54 | 54 | |
55 | 55 | |
56 | | - |
| 56 | + |
57 | 57 | |
58 | 58 | |
59 | 59 | |
|
Collapse file
test/message/events_unhandled_error_common_trace.out
Copy file name to clipboardExpand all lines: test/message/events_unhandled_error_common_trace.out+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | | - |
| 22 | + |
0 commit comments