diff --git a/lib/internal/bootstrap/loaders.js b/lib/internal/bootstrap/loaders.js index c6764cfe5a5..c37176a5a81 100644 --- a/lib/internal/bootstrap/loaders.js +++ b/lib/internal/bootstrap/loaders.js @@ -262,15 +262,6 @@ NativeModule.getSource = function(id) { 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) :