Skip to content

Commit d8ba520

Browse files
joyeecheungaddaleax
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 <[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]> Backport-PR-URL: #25446
1 parent 7480864 commit d8ba520

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
@@ -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)