Commit 67ecb10
committed
module: fix discrepancy between .ts and .js
PR-URL: #54461
Backport-PR-URL: #54566
Fixes: #54457
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>1 parent 8a3482e commit 67ecb10Copy full SHA for 67ecb10
File tree
Expand file treeCollapse file tree
6 files changed
+83
-56
lines changedOpen diff view settings
Filter options
- lib/internal/modules
- esm
- test
- es-module
- fixtures/typescript/ts
Expand file treeCollapse file tree
6 files changed
+83
-56
lines changedOpen diff view settings
Collapse file
lib/internal/modules/esm/get_format.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/get_format.js+7-7Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
161 | 161 | |
162 | 162 | |
163 | 163 | |
164 | | - |
165 | | - |
166 | | - |
167 | | - |
168 | | - |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
169 | 170 | |
170 | | - |
171 | | - |
| 171 | + |
172 | 172 | |
173 | 173 | |
174 | 174 | |
|
Collapse file
lib/internal/modules/esm/translators.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/translators.js+2-49Lines changed: 2 additions & 49 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | 21 | |
32 | 22 | |
33 | 23 | |
| ||
37 | 27 | |
38 | 28 | |
39 | 29 | |
| 30 | + |
40 | 31 | |
| 32 | + |
41 | 33 | |
42 | 34 | |
43 | 35 | |
| ||
57 | 49 | |
58 | 50 | |
59 | 51 | |
60 | | - |
61 | 52 | |
62 | 53 | |
63 | 54 | |
| ||
107 | 98 | |
108 | 99 | |
109 | 100 | |
110 | | - |
111 | | - |
112 | | - |
113 | | - |
114 | | - |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
119 | | - |
120 | | - |
121 | | - |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | | - |
131 | | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
146 | | - |
147 | | - |
148 | 101 | |
149 | 102 | |
150 | 103 | |
|
Collapse file
lib/internal/modules/helpers.js
Copy file name to clipboardExpand all lines: lib/internal/modules/helpers.js+52Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
| 19 | + |
19 | 20 | |
20 | 21 | |
21 | 22 | |
| ||
429 | 430 | |
430 | 431 | |
431 | 432 | |
| 433 | + |
| 434 | + |
| 435 | + |
| 436 | + |
| 437 | + |
| 438 | + |
| 439 | + |
| 440 | + |
| 441 | + |
| 442 | + |
| 443 | + |
| 444 | + |
| 445 | + |
| 446 | + |
| 447 | + |
| 448 | + |
| 449 | + |
| 450 | + |
| 451 | + |
| 452 | + |
| 453 | + |
| 454 | + |
| 455 | + |
| 456 | + |
| 457 | + |
| 458 | + |
| 459 | + |
| 460 | + |
| 461 | + |
| 462 | + |
| 463 | + |
| 464 | + |
| 465 | + |
| 466 | + |
| 467 | + |
| 468 | + |
| 469 | + |
| 470 | + |
| 471 | + |
| 472 | + |
| 473 | + |
| 474 | + |
| 475 | + |
| 476 | + |
| 477 | + |
| 478 | + |
| 479 | + |
| 480 | + |
| 481 | + |
432 | 482 | |
433 | 483 | |
434 | 484 | |
435 | 485 | |
| 486 | + |
436 | 487 | |
437 | 488 | |
438 | 489 | |
| ||
442 | 493 | |
443 | 494 | |
444 | 495 | |
| 496 | + |
445 | 497 | |
446 | 498 | |
447 | 499 | |
|
Collapse file
test/es-module/test-typescript.mjs
Copy file name to clipboardExpand all lines: test/es-module/test-typescript.mjs+11Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
325 | 325 | |
326 | 326 | |
327 | 327 | |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
Collapse file
test/fixtures/typescript/ts/issue-54457.mjs
Copy file name to clipboard+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
Collapse file
test/fixtures/typescript/ts/test-require.ts
Copy file name to clipboard+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
0 commit comments