Commit 62bc80c
process: add lineLength to source-map-cache
Without the line lengths of in-memory transpiled source, it's not
possible to convert from byte ofsets to line/column offsets.
PR-URL: #29863
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 735ec1b commit 62bc80cCopy full SHA for 62bc80c
File tree
Expand file treeCollapse file tree
6 files changed
+118
-55
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- bootstrap
- source_map
- test/parallel
Expand file treeCollapse file tree
6 files changed
+118
-55
lines changedOpen diff view settings
Collapse file
+10-3Lines changed: 10 additions & 3 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1199 | 1199 | |
1200 | 1200 | |
1201 | 1201 | |
1202 | | - |
1203 | | - |
| 1202 | + |
| 1203 | + |
| 1204 | + |
1204 | 1205 | |
1205 | 1206 | |
1206 | 1207 | |
| ||
1226 | 1227 | |
1227 | 1228 | |
1228 | 1229 | |
1229 | | - |
| 1230 | + |
| 1231 | + |
| 1232 | + |
| 1233 | + |
| 1234 | + |
| 1235 | + |
| 1236 | + |
1230 | 1237 | |
1231 | 1238 | |
1232 | 1239 | |
|
Collapse file
lib/internal/bootstrap/pre_execution.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/pre_execution.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
| 28 | + |
29 | 29 | |
30 | 30 | |
31 | 31 | |
|
Collapse file
lib/internal/source_map/prepare_stack_trace.js
Copy file name to clipboard+52Lines changed: 52 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 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
Collapse file
lib/internal/source_map/source_map_cache.js
Copy file name to clipboardExpand all lines: lib/internal/source_map/source_map_cache.js+24-51Lines changed: 24 additions & 51 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
21 | 20 | |
22 | 21 | |
23 | 22 | |
| ||
38 | 37 | |
39 | 38 | |
40 | 39 | |
| 40 | + |
| 41 | + |
41 | 42 | |
42 | 43 | |
43 | 44 | |
44 | | - |
45 | | - |
| 45 | + |
| 46 | + |
| 47 | + |
46 | 48 | |
47 | 49 | |
48 | 50 | |
49 | 51 | |
50 | 52 | |
51 | | - |
52 | | - |
| 53 | + |
| 54 | + |
| 55 | + |
53 | 56 | |
54 | 57 | |
55 | 58 | |
| ||
73 | 76 | |
74 | 77 | |
75 | 78 | |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
76 | 91 | |
77 | 92 | |
78 | 93 | |
| ||
161 | 176 | |
162 | 177 | |
163 | 178 | |
164 | | - |
165 | | - |
| 179 | + |
| 180 | + |
| 181 | + |
166 | 182 | |
167 | 183 | |
168 | 184 | |
169 | 185 | |
170 | 186 | |
171 | | - |
172 | | - |
173 | | - |
174 | | - |
175 | | - |
176 | | - |
177 | | - |
178 | | - |
179 | | - |
180 | | - |
181 | | - |
182 | | - |
183 | | - |
184 | | - |
185 | | - |
186 | | - |
187 | | - |
188 | | - |
189 | | - |
190 | | - |
191 | | - |
192 | | - |
193 | | - |
194 | | - |
195 | | - |
196 | | - |
197 | | - |
198 | | - |
199 | | - |
200 | | - |
201 | | - |
202 | | - |
203 | | - |
204 | | - |
205 | | - |
206 | | - |
207 | | - |
208 | | - |
209 | | - |
210 | | - |
211 | | - |
212 | | - |
213 | | - |
214 | 187 | |
215 | 188 | |
216 | 189 | |
| ||
230 | 203 | |
231 | 204 | |
232 | 205 | |
| 206 | + |
233 | 207 | |
234 | | - |
235 | 208 | |
236 | 209 | |
237 | 210 | |
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
176 | 176 | |
177 | 177 | |
178 | 178 | |
| 179 | + |
179 | 180 | |
180 | 181 | |
181 | 182 | |
|
Collapse file
test/parallel/test-source-map.js
Copy file name to clipboardExpand all lines: test/parallel/test-source-map.js+30Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
193 | 193 | |
194 | 194 | |
195 | 195 | |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
196 | 226 | |
197 | 227 | |
198 | 228 | |
|
0 commit comments