Commit ee6412a
src,lib: print prinstine source when source map source not found
Print unmapped source lines when the source map source is not
found. Error stacks should be correctly mapped even when the
source is absent.
PR-URL: #44052
Refs: #44019
Reviewed-By: Ben Coe <bencoe@gmail.com>1 parent b252f38 commit ee6412aCopy full SHA for ee6412a
File tree
Expand file treeCollapse file tree
7 files changed
+53
-7
lines changedOpen diff view settings
Filter options
- lib/internal/source_map
- src
- test
- fixtures/source-map
- message
Expand file treeCollapse file tree
7 files changed
+53
-7
lines changedOpen diff view settings
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+7-6Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
139 | 139 | |
140 | 140 | |
141 | 141 | |
142 | | - |
143 | 142 | |
144 | 143 | |
145 | 144 | |
146 | 145 | |
147 | 146 | |
148 | 147 | |
149 | 148 | |
| 149 | + |
| 150 | + |
| 151 | + |
150 | 152 | |
151 | 153 | |
152 | | - |
| 154 | + |
| 155 | + |
| 156 | + |
153 | 157 | |
154 | 158 | |
155 | 159 | |
| ||
161 | 165 | |
162 | 166 | |
163 | 167 | |
164 | | - |
| 168 | + |
165 | 169 | |
166 | 170 | |
167 | 171 | |
| ||
184 | 188 | |
185 | 189 | |
186 | 190 | |
187 | | - |
188 | 191 | |
189 | | - |
190 | | - |
191 | 192 | |
192 | 193 | |
193 | 194 | |
|
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
105 | 105 | |
106 | 106 | |
107 | 107 | |
108 | | - |
| 108 | + |
| 109 | + |
| 110 | + |
109 | 111 | |
110 | 112 | |
111 | 113 | |
|
Collapse file
test/fixtures/source-map/no-source.js
Copy file name to clipboardExpand all lines: test/fixtures/source-map/no-source.js+9Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file
test/fixtures/source-map/no-source.js.map
Copy file name to clipboardExpand all lines: test/fixtures/source-map/no-source.js.map+1Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file
test/fixtures/source-map/no-source.ts
Copy file name to clipboard+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
Collapse file
test/message/source_map_no_source_file.js
Copy file name to clipboard+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
Collapse file
test/message/source_map_no_source_file.out
Copy file name to clipboard+17Lines changed: 17 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 | + |
0 commit comments