module: Allow runMain to be ESM
This follows the EPS an allows the node CLI to have ESM as an entry point.
node ./example.mjs
. A newer V8 is needed for import()
so that is not
included. import.meta
is still in specification stage so that also is not
included.
Author: Bradley Farias bradley.meck@gmail.com Author: Guy Bedford guybedford@gmail.com Author: Jan Krems jan.krems@groupon.com
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines