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

Commit 1925d72

Browse files
joyeecheungmarco-ippolito
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 Backport-PR-URL: #56927 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> Refs: #52697
1 parent 4813a6a commit 1925d72

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)