module: fix dynamic import from eval
This allows dynamic import to work from CLI --eval
with or without
--input-type=module
.
Fixes: https://github.com/nodejs/node/issues/30591
Checklist
-
make -j4 test
(UNIX) -
tests are included -
commit message follows commit guidelines