Commit e08c008
cli: add --trace-uncaught flag
Add a flag that makes Node.js print the stack trace at the
time of *throwing* uncaught exceptions, rather than at the
creation of the `Error` object, if there is any.
This is disabled by default because it affects GC behavior.
PR-URL: #30025
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>1 parent 1aeca6d commit e08c008Copy full SHA for e08c008
File tree
Expand file treeCollapse file tree
17 files changed
+111
-0
lines changedOpen diff view settings
Filter options
- doc
- api
- src
- test/message
Expand file treeCollapse file tree
17 files changed
+111
-0
lines changedOpen diff view settings
Collapse file
+13Lines changed: 13 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
775 | 775 | |
776 | 776 | |
777 | 777 | |
| 778 | + |
| 779 | + |
| 780 | + |
| 781 | + |
| 782 | + |
| 783 | + |
| 784 | + |
| 785 | + |
| 786 | + |
| 787 | + |
| 788 | + |
| 789 | + |
778 | 790 | |
779 | 791 | |
780 | 792 | |
| ||
1089 | 1101 | |
1090 | 1102 | |
1091 | 1103 | |
| 1104 | + |
1092 | 1105 | |
1093 | 1106 | |
1094 | 1107 | |
|
Collapse file
+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
346 | 346 | |
347 | 347 | |
348 | 348 | |
| 349 | + |
| 350 | + |
| 351 | + |
| 352 | + |
| 353 | + |
| 354 | + |
| 355 | + |
| 356 | + |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
349 | 361 | |
350 | 362 | |
351 | 363 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
232 | 232 | |
233 | 233 | |
234 | 234 | |
| 235 | + |
| 236 | + |
235 | 237 | |
236 | 238 | |
237 | 239 | |
|
Collapse file
+13Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
380 | 380 | |
381 | 381 | |
382 | 382 | |
| 383 | + |
| 384 | + |
| 385 | + |
| 386 | + |
| 387 | + |
| 388 | + |
| 389 | + |
| 390 | + |
| 391 | + |
| 392 | + |
| 393 | + |
| 394 | + |
| 395 | + |
383 | 396 | |
384 | 397 | |
385 | 398 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
494 | 494 | |
495 | 495 | |
496 | 496 | |
| 497 | + |
| 498 | + |
| 499 | + |
| 500 | + |
497 | 501 | |
498 | 502 | |
499 | 503 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
142 | 142 | |
143 | 143 | |
144 | 144 | |
| 145 | + |
145 | 146 | |
146 | 147 | |
147 | 148 | |
|
Collapse file
test/message/eval_messages.out
Copy file name to clipboardExpand all lines: test/message/eval_messages.out+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
| 58 | + |
58 | 59 | |
59 | 60 | |
60 | 61 | |
61 | 62 | |
62 | 63 | |
| 64 | + |
63 | 65 | |
Collapse file
test/message/stdin_messages.out
Copy file name to clipboardExpand all lines: test/message/stdin_messages.out+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
67 | 67 | |
68 | 68 | |
69 | 69 | |
| 70 | + |
70 | 71 | |
71 | 72 | |
72 | 73 | |
73 | 74 | |
74 | 75 | |
| 76 | + |
75 | 77 | |
Collapse file
test/message/throw_error_with_getter_throw.out
Copy file name to clipboardExpand all lines: test/message/throw_error_with_getter_throw.out+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
Collapse file
test/message/throw_error_with_getter_throw_traced.js
Copy file name to clipboard+11Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
0 commit comments