Skip to content

Commit

Permalink
fix sidorares#2752 setMaxParserCache throws TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
constb committed Jun 11, 2024
1 parent d74e0d7 commit 02608ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parsers/parser_cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function getParser(type, fields, options, config, compiler) {
}

function setMaxCache(max) {
parserCache.max = max;
parserCache = new LRU({ max });
}

function clearCache() {
Expand Down

0 comments on commit 02608ac

Please sign in to comment.