mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #493 from iij/pr-return-breaks-sp
Fix disappearance of a local variable when return statement is called
This commit is contained in:
@@ -1490,6 +1490,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
else {
|
||||
genop_peep(s, MKOP_AB(OP_RETURN, cursp(), OP_R_NORMAL), NOVAL);
|
||||
}
|
||||
push();
|
||||
break;
|
||||
|
||||
case NODE_YIELD:
|
||||
|
||||
Reference in New Issue
Block a user