Skip to content
Permalink
Browse files

lib: remove unused NativeModule/NativeModule wraps

We now compile the native modules in C++ so these are no longer
used.

PR-URL: #24904
Refs:https://github.com/joyeecheung/node/commit/
bd765d6
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>

Backport-PR-URL: #25446
  • Loading branch information...
joyeecheung authored and addaleax committed Dec 8, 2018
1 parent 7480864 commit d8ba520622bc01f3487b4dd2344ad68c4f7b38b2
Showing with 0 additions and 9 deletions.
  1. +0 −9 lib/internal/bootstrap/loaders.js
@@ -257,15 +257,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) :

0 comments on commit d8ba520

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