*improved error handling in var statement.

This commit is contained in:
paladin-t 2015-12-28 15:34:21 +08:00
parent a191979da7
commit acfe0446ee

View File

@ -11068,6 +11068,11 @@ int _core_var(mb_interpreter_t* s, void** l) {
ast = (_ls_node_t*)(*l); ast = (_ls_node_t*)(*l);
ast = ast->next; ast = ast->next;
if(!s->last_instance) {
_handle_error_on_obj(s, SE_RN_CLASS_EXPECTED, 0, TON(l), MB_FUNC_WARNING, _exit, result);
}
_exit:
*l = ast; *l = ast;
return result; return result;