Skip to content

module: Allow runMain to be ESM

Rodrigo Muino Tomonari requested to merge github/fork/bmeck/initial-pr into master

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

Merge request reports

Loading