Skip to content

Commit 8cd8186

Browse files
committed
module: named anonymous function for debugging purposes
My first contribution 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. Refs: #8913
1 parent 42a4a60 commit 8cd8186

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(functionpathsFilterCB(path){
780780
return!!path;
781781
}).concat(paths);
782782
}

0 commit comments

Comments
(0)