Skip to content

src: add `jsEngine` property to `process`

Rodrigo Muino Tomonari requested to merge github/fork/kfarnung/jsengine into master

Module owners currently have no documented way to determine which engine is being used to execute their code, preventing seamless usage of Node-ChakraCore. The most common issue is usage of V8-specific launch options when spawning child processes.

Refs: https://github.com/nodejs/node-chakracore/issues/10 Refs: https://github.com/nodejs/node-chakracore/issues/486

I just wanted to gauge interest in exposing this property to modules so that they can be more targeted in when they take a dependency on V8 options.

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

Merge request reports

Loading