*fixed a returning issue after calling a function for a referenced usertype.

This commit is contained in:
Wang Renxin 2017-02-23 15:37:18 +08:00
parent dedc7129e9
commit 523c82b3fd

View File

@ -3848,6 +3848,10 @@ _routine:
if(fn) fn = fn->prev;
if(_try_call_func_on_usertype_ref(s, &fn, c, cs, 0)) {
ast = fn;
c = _create_object();
_ls_pushback(garbage, c);
_public_value_to_internal_object(&running->intermediate_value, c);
_REF(c)
} else {
#else /* MB_ENABLE_USERTYPE_REF */
{