Commit 1a0cda1
errors: support prepareSourceMap with source-maps
Adds support for Error.prepareStackTrace override, when
--enable-source-maps is set.
PR-URL: #31143
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 8ab748e commit 1a0cda1Copy full SHA for 1a0cda1
File tree
Expand file treeCollapse file tree
3 files changed
+49
-12
lines changedOpen diff view settings
Filter options
- lib/internal
- source_map
- test/parallel
Expand file treeCollapse file tree
3 files changed
+49
-12
lines changedOpen diff view settings
Collapse file
+21-11Lines changed: 21 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
| 23 | + |
23 | 24 | |
24 | 25 | |
25 | 26 | |
| ||
29 | 30 | |
30 | 31 | |
31 | 32 | |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
32 | 50 | |
33 | 51 | |
34 | 52 | |
| ||
43 | 61 | |
44 | 62 | |
45 | 63 | |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
| 64 | + |
56 | 65 | |
57 | 66 | |
58 | | - |
59 | 67 | |
60 | 68 | |
61 | 69 | |
| ||
683 | 691 | |
684 | 692 | |
685 | 693 | |
| 694 | + |
686 | 695 | |
| 696 | + |
687 | 697 | |
688 | 698 | |
689 | 699 | |
|
Collapse file
lib/internal/source_map/prepare_stack_trace.js
Copy file name to clipboardExpand all lines: lib/internal/source_map/prepare_stack_trace.js+9-1Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
6 | 10 | |
7 | 11 | |
8 | 12 | |
| ||
17 | 21 | |
18 | 22 | |
19 | 23 | |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
20 | 28 | |
21 | 29 | |
22 | 30 | |
|
Collapse file
test/parallel/test-error-prepare-stack-trace.js
Copy file name to clipboard+19Lines changed: 19 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 | + |
0 commit comments