mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mrb_run to return last evaluated value
This commit is contained in:
+1
-1
@@ -523,7 +523,7 @@ scope_body(codegen_scope *s, node *tree)
|
||||
int idx = scope->idx;
|
||||
|
||||
if (!s->iseq) {
|
||||
codegen(scope, tree->cdr, NOVAL);
|
||||
codegen(scope, tree->cdr, VAL);
|
||||
genop(scope, MKOP_A(OP_STOP, 0));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user