We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f591e6 commit 2b6f4afCopy full SHA for 2b6f4af
src/parser/parser_lib.ts
@@ -16,7 +16,10 @@ export class Parser<T> {
16
if (Parser.cache != null) {
17
const cache = new Map<string, MemoizationCacheResult<ParserResult<T>>>();
18
Parser.addToCache(cache);
19
- this.rawParser = memoize(this.nonMemoizedParser, { cache });
+ this.rawParser = memoize(this.nonMemoizedParser, {
20
+ cache,
21
+ errorIsCacheable: () => true,
22
+ });
23
} else {
24
this.rawParser = this.nonMemoizedParser;
25
}
0 commit comments