Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lib: restore null assignment to __proto__type
  • Loading branch information
danielbayley committed Jun 23, 2024
commit 777d5d3bfc0eef0eae7c2d2dd0b0f996f6e51fa4
1 change: 1 addition & 0 deletions lib/internal/fs/glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ class Glob {
patterns = [pattern];
}
this.matchers = ArrayPrototypeMap(patterns, (pattern) => lazyMicromatch()(pattern, {
__proto__: null,
nocase: isWindows || isMacOS,
nonegate: true,
}));
Expand Down
1 change: 1 addition & 0 deletions lib/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function glob(path, pattern, windows) {
validateString(path, 'path');
validateString(pattern, 'pattern');
return lazyMicromatch().isMatch(path, pattern, {
__proto__: null,
nocase: isWindows || isMacOS,
nonegate: true,
});
Expand Down