We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7308e7a commit 61f6911Copy full SHA for 61f6911
1 file changed
src/dictionary/parallel_parser.ts
@@ -30,8 +30,6 @@ class ParserWorker {
30
switch (result.type) {
31
case "value":
32
resolve(result.value);
33
- this.#cachedSource = source;
34
- this.#cachedDictionary = result.value;
35
break;
36
case "error":
37
reject(
@@ -66,7 +64,10 @@ class ParserWorker {
66
64
if (this.#cachedSource === source) {
67
65
return this.#cachedDictionary;
68
} else {
69
- return await this.#rawParse(position, source);
+ const dictionary = await this.#rawParse(position, source);
+ this.#cachedSource = source;
+ this.#cachedDictionary = dictionary;
70
+ return dictionary;
71
}
72
73
0 commit comments