Skip to content
Permalink
Browse files

Revert "lib: remove unused NativeModule/NativeModule wraps"

This reverts commit 0cde1a4.

PR-URL: #25446
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information...
joyeecheung authored and addaleax committed Jan 11, 2019
1 parent f64e5ec commit 42a7eaf9d47f0b6bc62841000fd47f0551163928
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/internal/bootstrap/loaders.js
@@ -252,6 +252,15 @@
return NativeModule._source[id];
};

NativeModule.wrap = function(script) {
return NativeModule.wrapper[0] + script + NativeModule.wrapper[1];
};

NativeModule.wrapper = [
'(function (exports, require, module, process, internalBinding) {',
'\n});'
];

const getOwn = (target, property, receiver) => {
return ReflectApply(ObjectHasOwnProperty, target, [property]) ?
ReflectGet(target, property, receiver) :

0 comments on commit 42a7eaf

Please sign in to comment.
You can’t perform that action at this time.