repl: fix referrer for dynamic import
The ESM loader does not accept a directory as the referrer, it requires
a path within the directory. Add /repl
to ensure relative dynamic
imports can succeed.
Fixes: https://github.com/nodejs/node/issues/19570
Checklist
-
make -j4 test
(UNIX) -
tests are included -
commit message follows commit guidelines