Commit 873c2bc
fs: restore fs patchability in ESM loader
Temporarily restore fs patchability in ESM loader as a workaround
for helping downstream projects that depend on this undocumented
hidden contract transition into using hook proper APIs. This patch
intentionally avoids adding a test and instead adds warning
comments to hopefully steer new code away from depending on it.
PR-URL: #62835
Refs: #62012
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent b883a5e commit 873c2bcCopy full SHA for 873c2bc
3 files changed
+18-6Lines changed: 18 additions & 6 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib/internal/modules/esm
Expand file treeCollapse file tree
Open diff view settings
Collapse file
lib/internal/modules/esm/load.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/load.js+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
38 | 42 | |
39 | 43 | |
40 | 44 | |
|
Collapse file
lib/internal/modules/esm/resolve.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/resolve.js+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
| 28 | + |
29 | 29 | |
30 | 30 | |
31 | 31 | |
| ||
273 | 273 | |
274 | 274 | |
275 | 275 | |
276 | | - |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
277 | 281 | |
278 | 282 | |
279 | 283 | |
|
Collapse file
lib/internal/modules/esm/translators.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/translators.js+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
26 | 26 | |
27 | 27 | |
28 | 28 | |
| ||
343 | 343 | |
344 | 344 | |
345 | 345 | |
346 | | - |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
347 | 351 | |
348 | 352 | |
349 | 353 | |
|
0 commit comments