*fixed a variable lookup issue with a ranged FOR loop.
This commit is contained in:
parent
b36e3f59dc
commit
dfb98dc27e
@ -11172,6 +11172,10 @@ static int _execute_ranged_for_loop(mb_interpreter_t* s, _ls_node_t** l, _var_t*
|
|||||||
#ifdef MB_ENABLE_CLASS
|
#ifdef MB_ENABLE_CLASS
|
||||||
if(var_loop->pathing)
|
if(var_loop->pathing)
|
||||||
pathed_var = _search_var_in_scope_chain(s, var_loop);
|
pathed_var = _search_var_in_scope_chain(s, var_loop);
|
||||||
|
if(pathed_var) {
|
||||||
|
_UNREF(pathed_var->data)
|
||||||
|
_MAKE_NIL(pathed_var->data);
|
||||||
|
}
|
||||||
#endif /* MB_ENABLE_CLASS */
|
#endif /* MB_ENABLE_CLASS */
|
||||||
if(!pathed_var)
|
if(!pathed_var)
|
||||||
pathed_var = var_loop;
|
pathed_var = var_loop;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user