Skip to content

Commit 5bc4592

Browse files
committed
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 <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 b6afa46 commit 5bc4592

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

lib/internal/bootstrap/loaders.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,6 @@ NativeModule.getSource = function(id) {
257257
return NativeModule._source[id];
258258
};
259259

260-
NativeModule.wrap = function(script) {
261-
return NativeModule.wrapper[0] + script + NativeModule.wrapper[1];
262-
};
263-
264-
NativeModule.wrapper = [
265-
'(function (exports, require, module, process, internalBinding) {',
266-
'\n});'
267-
];
268-
269260
const getOwn = (target, property, receiver) => {
270261
return ReflectApply(ObjectHasOwnProperty, target, [property]) ?
271262
ReflectGet(target, property, receiver) :

0 commit comments

Comments
 (0)