Commit a91b735
module: fix dynamic import from eval
This allows dynamic import to work from CLI `--eval` with or without
`--input-type=module`.
Fixes: #30591
PR-URL: #30624
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com>
Reviewed-By: Ben Coe <bencoe@gmail.com>1 parent 2a2ae8e commit a91b735Copy full SHA for a91b735
File tree
Expand file treeCollapse file tree
3 files changed
+44
-4
lines changedOpen diff view settings
Filter options
- lib/internal
- modules/esm
- process
- test/parallel
Expand file treeCollapse file tree
3 files changed
+44
-4
lines changedOpen diff view settings
Collapse file
lib/internal/modules/esm/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/loader.js+11-2Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
25 | 24 | |
26 | 25 | |
27 | 26 | |
| ||
118 | 117 | |
119 | 118 | |
120 | 119 | |
121 | | - |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
122 | 131 | |
123 | 132 | |
124 | 133 | |
|
Collapse file
lib/internal/process/execution.js
Copy file name to clipboardExpand all lines: lib/internal/process/execution.js+13-2Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
| 58 | + |
58 | 59 | |
59 | 60 | |
60 | 61 | |
61 | 62 | |
62 | 63 | |
63 | 64 | |
64 | 65 | |
| 66 | + |
65 | 67 | |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
66 | 72 | |
67 | 73 | |
68 | 74 | |
69 | 75 | |
70 | 76 | |
71 | 77 | |
72 | | - |
| 78 | + |
73 | 79 | |
| 80 | + |
74 | 81 | |
75 | 82 | |
76 | 83 | |
77 | 84 | |
78 | | - |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
79 | 90 | |
80 | 91 | |
81 | 92 | |
|
Collapse file
test/parallel/test-cli-eval.js
Copy file name to clipboardExpand all lines: test/parallel/test-cli-eval.js+20Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
283 | 283 | |
284 | 284 | |
285 | 285 | |
| 286 | + |
| 287 | + |
| 288 | + |
| 289 | + |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
0 commit comments