From 28ad6ab596b955ad56a5fd9cf2a000a0ae6f79e5 Mon Sep 17 00:00:00 2001 From: sinkhaha <1468709106@qq.com> Date: Tue, 8 Nov 2022 10:33:56 +0800 Subject: [PATCH] lib: delete module findPath unused params --- 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 02a07222746dfd..921b0c1efd3c7b 100644 --- a/lib/internal/modules/cjs/loader.js +++ b/lib/internal/modules/cjs/loader.js @@ -1009,7 +1009,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;