Commit 889add6
esm: avoid try/catch when validating urls
PR-URL: #47541
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>1 parent b0b16ee commit 889add6Copy full SHA for 889add6
File tree
Expand file treeCollapse file tree
2 files changed
+12
-16
lines changedOpen diff view settings
Filter options
- lib/internal/modules/esm
Expand file treeCollapse file tree
2 files changed
+12
-16
lines changedOpen diff view settings
Collapse file
lib/internal/modules/esm/hooks.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/hooks.js+9-8Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
35 | 35 | |
36 | 36 | |
37 | 37 | |
| 38 | + |
38 | 39 | |
39 | 40 | |
40 | 41 | |
| ||
272 | 273 | |
273 | 274 | |
274 | 275 | |
275 | | - |
276 | | - |
277 | | - |
278 | | - |
| 276 | + |
| 277 | + |
279 | 278 | |
280 | 279 | |
281 | 280 | |
282 | 281 | |
283 | 282 | |
284 | 283 | |
285 | 284 | |
| 285 | + |
| 286 | + |
286 | 287 | |
287 | 288 | |
288 | 289 | |
| ||
352 | 353 | |
353 | 354 | |
354 | 355 | |
355 | | - |
356 | | - |
357 | | - |
358 | | - |
| 356 | + |
| 357 | + |
359 | 358 | |
360 | 359 | |
361 | 360 | |
362 | 361 | |
363 | 362 | |
364 | 363 | |
| 364 | + |
| 365 | + |
365 | 366 | |
366 | 367 | |
367 | 368 | |
|
Collapse file
lib/internal/modules/esm/resolve.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/resolve.js+3-8Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
42 | 42 | |
43 | 43 | |
44 | 44 | |
| 45 | + |
45 | 46 | |
46 | 47 | |
47 | 48 | |
| ||
333 | 334 | |
334 | 335 | |
335 | 336 | |
336 | | - |
337 | | - |
338 | | - |
339 | | - |
340 | | - |
341 | | - |
342 | | - |
343 | | - |
| 337 | + |
| 338 | + |
344 | 339 | |
345 | 340 | |
346 | 341 | |
|
0 commit comments