custom module: expose process global
This commit is contained in:
parent
e44e5e48c7
commit
1d6794e6af
3 changed files with 13 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue