custom module: expose process global

This commit is contained in:
bordun 2021-03-01 17:23:11 +01:00
parent e44e5e48c7
commit 1d6794e6af
3 changed files with 13 additions and 5 deletions

View file

@ -60,7 +60,8 @@ class CustomModule {
setInterval: this.setInterval.bind(this),
clearInterval: this.clearInterval.bind(this),
require: this.require.bind(this),
nativeRequire: require
nativeRequire: require,
process: process
}
if (!this.submodule && !modulePathExtended) {