Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d8ba520

Browse filesBrowse 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 <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
1 parent 7480864 commit d8ba520
Copy full SHA for d8ba520

File tree

Expand file treeCollapse file tree

1 file changed

+0
-9
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-9
lines changed
Open diff view settings
Collapse file

‎lib/internal/bootstrap/loaders.js‎

Copy file name to clipboardExpand all lines: lib/internal/bootstrap/loaders.js
-9Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.