Commit 7a8a2d5
lib: don't parse windows drive letters as schemes
We were incorrectly parsing windows drive letters as schemes. This was
polluting the source map cache with malformed file paths.
Fixes: #50523
PR-URL: #50580
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent c984158 commit 7a8a2d5Copy full SHA for 7a8a2d5
File tree
Expand file treeCollapse file tree
4 files changed
+50
-0
lines changedOpen diff view settings
Filter options
- lib/internal/source_map
- test
- fixtures/source-map
- parallel
Expand file treeCollapse file tree
4 files changed
+50
-0
lines changedOpen diff view settings
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+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
| 42 | + |
42 | 43 | |
43 | 44 | |
44 | 45 | |
| ||
263 | 264 | |
264 | 265 | |
265 | 266 | |
| 267 | + |
266 | 268 | |
267 | 269 | |
268 | 270 | |
| 271 | + |
| 272 | + |
| 273 | + |
269 | 274 | |
270 | 275 | |
271 | 276 | |
|
Collapse file
test/fixtures/source-map/ts-node-win32.js
Copy file name to clipboardExpand all lines: test/fixtures/source-map/ts-node-win32.js+10Lines changed: 10 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/ts-node.ts
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 | + |
Collapse file
test/parallel/test-source-map-enable.js
Copy file name to clipboardExpand all lines: test/parallel/test-source-map-enable.js+24Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
289 | 289 | |
290 | 290 | |
291 | 291 | |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
292 | 316 | |
293 | 317 | |
294 | 318 | |
|
0 commit comments