summaryrefslogtreecommitdiff
path: root/lib/internal/bootstrap_node.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/bootstrap_node.js')
-rw-r--r--lib/internal/bootstrap_node.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js
index a565916193..d8ebd9af96 100644
--- a/lib/internal/bootstrap_node.js
+++ b/lib/internal/bootstrap_node.js
@@ -608,7 +608,7 @@
};
NativeModule.wrapper = [
- '(function (exports, require, module, internalBinding) {',
+ '(function (exports, require, module, internalBinding, process) {',
'\n});'
];
@@ -627,7 +627,7 @@
const requireFn = this.id.startsWith('internal/deps/') ?
NativeModule.requireForDeps :
NativeModule.require;
- fn(this.exports, requireFn, this, internalBinding);
+ fn(this.exports, requireFn, this, internalBinding, process);
this.loaded = true;
} finally {