Avoid hard crashes due to unfinished interpreter function.

This commit is contained in:
Danila Fedorin 2018-06-13 23:28:33 -07:00
parent 3fc90383a9
commit 59f306f59e

View File

@ -919,6 +919,8 @@ libab_result _interpreter_run(struct interpreter_state* state, libab_tree* tree,
libab_ref_get(scope), tree->string_value, OPERATOR_POSTFIX);
result = _interpreter_call_operator(state, to_call, into, scope,
vec_index(&tree->children, 0));
} else {
libab_get_unit_value(state->ab, into);
}
if (needs_scope) {