Skip to content

Commit bbc53f6

Browse files
joyeecheungrefack
authored andcommittedJan 10, 2019
lib: remove unused NativeModule/NativeModule wraps
We now compile the native modules in C++ so these are no longer used. PR-URL: nodejs#24904 Refs:https://github.com/joyeecheung/node/commit/ bd765d6 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
1 parent bd97ea1 commit bbc53f6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed
 

‎lib/internal/bootstrap/loaders.js

-9
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,6 @@ NativeModule.getSource = function(id) {
262262
return NativeModule._source[id];
263263
};
264264

265-
NativeModule.wrap = function(script) {
266-
return NativeModule.wrapper[0] + script + NativeModule.wrapper[1];
267-
};
268-
269-
NativeModule.wrapper = [
270-
'(function (exports, require, module, process, internalBinding) {',
271-
'\n});'
272-
];
273-
274265
const getOwn = (target, property, receiver) => {
275266
return ReflectApply(ObjectHasOwnProperty, target, [property]) ?
276267
ReflectGet(target, property, receiver) :

0 commit comments

Comments
 (0)
Please sign in to comment.