Commit 5ca5864
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 39070bb commit 5ca5864Copy full SHA for 5ca5864
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 |
|---|---|---|
| ||
748 | 748 | |
749 | 749 | |
750 | 750 | |
| 751 | + |
| 752 | + |
| 753 | + |
| 754 | + |
| 755 | + |
| 756 | + |
| 757 | + |
| 758 | + |
| 759 | + |
| 760 | + |
| 761 | + |
| 762 | + |
751 | 763 | |
752 | 764 | |
753 | 765 | |
| ||
1045 | 1057 | |
1046 | 1058 | |
1047 | 1059 | |
| 1060 | + |
1048 | 1061 | |
1049 | 1062 | |
1050 | 1063 | |
|
Collapse file
+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
337 | 337 | |
338 | 338 | |
339 | 339 | |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
| 351 | + |
340 | 352 | |
341 | 353 | |
342 | 354 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
265 | 265 | |
266 | 266 | |
267 | 267 | |
| 268 | + |
| 269 | + |
268 | 270 | |
269 | 271 | |
270 | 272 | |
|
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 |
|---|---|---|
| ||
476 | 476 | |
477 | 477 | |
478 | 478 | |
| 479 | + |
| 480 | + |
| 481 | + |
| 482 | + |
479 | 483 | |
480 | 484 | |
481 | 485 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
140 | 140 | |
141 | 141 | |
142 | 142 | |
| 143 | + |
143 | 144 | |
144 | 145 | |
145 | 146 | |
|
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