module: remove bogus assertion in CJS entrypoint handling with --import · nodejs/node@108cef2 · GitHub
Skip to content

Commit 108cef2

Browse files
joyeecheungtargos
authored andcommitted
module: remove bogus assertion in CJS entrypoint handling with --import
The synchronous CJS translator can handle entrypoints now, this can be hit when --import is used, so lift the bogus assertions and added tests. PR-URL: #54592 Fixes: #54577 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 676d0a0 commit 108cef2

2 files changed

Lines changed: 101 additions & 56 deletions

File tree

lib/internal/modules/esm/translators.js

Lines changed: 0 additions & 2 deletions

test/es-module/test-require-module-preload.js

Lines changed: 101 additions & 54 deletions

0 commit comments

Comments
 (0)