*fixed a wrong scope linkage issue with lambda.

This commit is contained in:
paladin-t 2016-01-07 21:31:05 +08:00
parent 9ebaeffa5d
commit 8da65bf5cf
2 changed files with 2 additions and 2 deletions

View File

@ -6364,7 +6364,7 @@ _running_context_t* _link_lambda_scope_chain(mb_interpreter_t* s, _lambda_t* lam
} }
if(weak) if(weak)
result = _push_weak_scope_by_routine(s, lambda->scope, 0); result = _push_weak_scope_by_routine(s, result, 0);
else else
result = _push_scope_by_routine(s, running); result = _push_scope_by_routine(s, running);

View File

@ -90,7 +90,7 @@ extern "C" {
#endif /* MB_ENABLE_CLASS */ #endif /* MB_ENABLE_CLASS */
#ifndef MB_ENABLE_LAMBDA #ifndef MB_ENABLE_LAMBDA
# define MB_ENABLE_LAMBDA /* The Lambda is still under development */ # define MB_ENABLE_LAMBDA
#endif /* MB_ENABLE_LAMBDA */ #endif /* MB_ENABLE_LAMBDA */
#ifndef MB_COMPACT_MODE #ifndef MB_COMPACT_MODE