Skip to content

Commit 45adec2

Browse files
ndanglestargos
authored andcommitted
module: name anonymous function for debugging
This commit is to help in the effort to name all anonymous functions to help when heap debugging. The issue asked for any functions to be updated that are not on a prototype and this file contains one function that meets those needs. A previous pull request (13849) was not completed and did not meet the requirements of the issue so this PR looks to complete that. PR-URL: #20811 Refs: #8913 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 9bbab91 commit 45adec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/cjs/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ Module._initPaths = function() {
776776
}
777777

778778
if (nodePath) {
779-
paths = nodePath.split(path.delimiter).filter(function(path) {
779+
paths = nodePath.split(path.delimiter).filter(function pathsFilterCB(path) {
780780
return !!path;
781781
}).concat(paths);
782782
}

0 commit comments

Comments
 (0)