Commit fdf5028
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
Backport-PR-URL: #56927
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Refs: #526971 parent 8d33f78 commit fdf5028Copy full SHA for fdf5028
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 |
|---|---|---|
| ||
1360 | 1360 | |
1361 | 1361 | |
1362 | 1362 | |
1363 | | - |
| 1363 | + |
| 1364 | + |
| 1365 | + |
| 1366 | + |
1364 | 1367 | |
1365 | 1368 | |
1366 | 1369 | |
|
Collapse file
+8-2Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
255 | 255 | |
256 | 256 | |
257 | 257 | |
258 | | - |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
259 | 265 | |
260 | 266 | |
261 | 267 | |
262 | 268 | |
263 | 269 | |
264 | 270 | |
265 | | - |
| 271 | + |
266 | 272 | |
267 | 273 | |
268 | 274 | |
|
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