Fixed crash when indexing a non-array node, added more array node errors

This commit is contained in:
Stefan Zermatten
2021-03-01 14:47:46 +02:00
parent a7ecdecec1
commit 574f8373e7
2 changed files with 32 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ export default class ParenthesisNode extends ParseNode {
resolve(fn, scope, context){
let content = this.content[fn](scope, context);
if (
fn === 'reduce' ||
content.constructor.name === 'ConstantNode' ||
content.constructor.name === 'ErrorNode'
){