🐛 fix bug of forindex/foreach, which will cause SIGSEGV.
example: var a=func{}; forindex(a();[0,1,2]);
This commit is contained in:
parent
21b345af27
commit
0515e388da
|
@ -946,6 +946,7 @@ nasal_ast nasal_parse::iter_gen()
|
|||
match(tok_id);
|
||||
while(is_call(tokens[ptr].type))
|
||||
node.add(call_scalar());
|
||||
check_memory_reachable(node);
|
||||
}
|
||||
return node;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue