Skip to content

process: allow StartExecution() to take a main script ID

Rodrigo Muino Tomonari requested to merge github/fork/joyeecheung/main into master

The idea is to allow the C++ layer to run arbitrary scripts as the main script. This paves the way for

  • cctest of the execution of Node.js instances
  • Earlier handling of per-process CLI options that affect execution modes (those usually do not make sense for the embedders).
  • Targets like mkcodecache or mksnapshot.

Also moves the handling of _third_party_main.js into C++.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading