Skip to content

Commit 0cde1a4

Browse files
joyeecheungMylesBorins
authored andcommitted
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>
1 parent edd8bd0 commit 0cde1a4

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
@@ -252,15 +252,6 @@
252252
return NativeModule._source[id];
253253
};
254254

255-
NativeModule.wrap = function(script) {
256-
return NativeModule.wrapper[0] + script + NativeModule.wrapper[1];
257-
};
258-
259-
NativeModule.wrapper = [
260-
'(function (exports, require, module, process, internalBinding) {',
261-
'\n});'
262-
];
263-
264255
const getOwn = (target, property, receiver) => {
265256
return ReflectApply(ObjectHasOwnProperty, target, [property]) ?
266257
ReflectGet(target, property, receiver) :

0 commit comments

Comments
 (0)