*fixed a wrong scope linkage issue with lambda.
This commit is contained in:
parent
9ebaeffa5d
commit
8da65bf5cf
@ -6364,7 +6364,7 @@ _running_context_t* _link_lambda_scope_chain(mb_interpreter_t* s, _lambda_t* lam
|
||||
}
|
||||
|
||||
if(weak)
|
||||
result = _push_weak_scope_by_routine(s, lambda->scope, 0);
|
||||
result = _push_weak_scope_by_routine(s, result, 0);
|
||||
else
|
||||
result = _push_scope_by_routine(s, running);
|
||||
|
||||
|
@ -90,7 +90,7 @@ extern "C" {
|
||||
#endif /* MB_ENABLE_CLASS */
|
||||
|
||||
#ifndef MB_ENABLE_LAMBDA
|
||||
# define MB_ENABLE_LAMBDA /* The Lambda is still under development */
|
||||
# define MB_ENABLE_LAMBDA
|
||||
#endif /* MB_ENABLE_LAMBDA */
|
||||
|
||||
#ifndef MB_COMPACT_MODE
|
||||
|
Loading…
x
Reference in New Issue
Block a user