Commit b3971bb
module: trim off internal stack frames for require(esm) warnings
Trim off irrelevant internal stack frames for require(esm) warnings
so it's easier to locate where the call comes from when
--trace-warnings is used.
PR-URL: #55496
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>1 parent 016baae commit b3971bbCopy full SHA for b3971bb
File tree
Expand file treeCollapse file tree
4 files changed
+48
-3
lines changedOpen diff view settings
Filter options
- lib/internal
- modules/cjs
- test
- es-module
- fixtures/es-modules
Expand file treeCollapse file tree
4 files changed
+48
-3
lines changedOpen diff view settings
Collapse file
lib/internal/modules/cjs/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/cjs/loader.js+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1389 | 1389 | |
1390 | 1390 | |
1391 | 1391 | |
1392 | | - |
| 1392 | + |
| 1393 | + |
| 1394 | + |
| 1395 | + |
1393 | 1396 | |
1394 | 1397 | |
1395 | 1398 | |
|
Collapse file
+8-2Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
266 | 266 | |
267 | 267 | |
268 | 268 | |
269 | | - |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
270 | 276 | |
271 | 277 | |
272 | 278 | |
273 | 279 | |
274 | 280 | |
275 | 281 | |
276 | | - |
| 282 | + |
277 | 283 | |
278 | 284 | |
279 | 285 | |
|
Collapse file
test/es-module/test-require-module-warning.js
Copy file name to clipboard+35Lines changed: 35 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 | + |
Collapse file
test/fixtures/es-modules/require-module.js
Copy file name to clipboard+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
0 commit comments