Fixed failing tests, tested parser more

This commit is contained in:
Thaum Rystra
2024-02-20 21:36:32 +02:00
parent ac15512bc5
commit b41d26b3ad
13 changed files with 211 additions and 45 deletions

View File

@@ -132,8 +132,8 @@ const parserFunctions: { [name: string]: ParserFunction } = {
],
arguments: ['parseNode'],
resultType: 'parseNode',
fn: function resolveFn(node) {
const { result } = resolve('reduce', node, this.scope, this.context);
fn: async function resolveFn(node) {
const { result } = await resolve('reduce', node, this.scope, this.context);
return result;
}
},
@@ -268,7 +268,7 @@ const parserFunctions: { [name: string]: ParserFunction } = {
}
function anyNumberOf(type) {
const argumentArray = [type];
const argumentArray: any = [type];
argumentArray.anyLength = true;
return argumentArray;
}