From 0cde1a4fdcd35724eb7e0f1408b199b7b30e070f Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Sat, 8 Dec 2018 22:06:46 +0800 Subject: [PATCH] lib: remove unused NativeModule/NativeModule wraps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We now compile the native modules in C++ so these are no longer used. PR-URL: https://github.com/nodejs/node/pull/24904 Refs:https://github.com/joyeecheung/node/commit/ bd765d61d7425d82e80bdf2f4f27c0424221837b Reviewed-By: Michaƫl Zasso Reviewed-By: Gus Caplan Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Franziska Hinkelmann --- lib/internal/bootstrap/loaders.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/internal/bootstrap/loaders.js b/lib/internal/bootstrap/loaders.js index 48d83f12e12186..2d197c768c7107 100644 --- a/lib/internal/bootstrap/loaders.js +++ b/lib/internal/bootstrap/loaders.js @@ -252,15 +252,6 @@ 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) :