From a2bbe5ff216bc28f8dac1c36a8750025a93c3827 Mon Sep 17 00:00:00 2001 From: sinkhaha <1468709106@qq.com> Date: Fri, 17 Feb 2023 14:55:38 +0800 Subject: [PATCH] lib: delete module findPath unused params PR-URL: https://github.com/nodejs/node/pull/45371 Reviewed-By: Geoffrey Booth Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Kohei Ueno Reviewed-By: James M Snell --- lib/internal/modules/cjs/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/modules/cjs/loader.js b/lib/internal/modules/cjs/loader.js index 041aae3ca49fcc..8d602df88a7ba4 100644 --- a/lib/internal/modules/cjs/loader.js +++ b/lib/internal/modules/cjs/loader.js @@ -1072,7 +1072,7 @@ Module._resolveFilename = function(request, parent, isMain, options) { } // Look up the filename first, since that's the cache key. - const filename = Module._findPath(request, paths, isMain, false); + const filename = Module._findPath(request, paths, isMain); if (filename) return filename; const requireStack = []; for (let cursor = parent;