fs: key glob matcher cache by platform · nodejs/node@b250b40 · GitHub
Skip to content

Commit b250b40

Browse files
Archkonaduh95
authored andcommitted
fs: key glob matcher cache by platform
Glob matchers capture the path platform when they are created. Include the platform in the cache key so path.posix and path.win32 do not share incompatible matchers for the same pattern. Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com> PR-URL: #64571 Fixes: #64570 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 999a928 commit b250b40

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/internal/fs/glob.js

Lines changed: 4 additions & 3 deletions

test/parallel/test-path-glob.js

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)