mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5273 from dearblue/fiber
Capture the return value of `Fiber.yield` via C; ref #5261
This commit is contained in:
@@ -225,6 +225,9 @@ fiber_switch(mrb_state *mrb, mrb_value self, mrb_int len, const mrb_value *a, mr
|
||||
}
|
||||
else {
|
||||
value = fiber_result(mrb, a, len);
|
||||
if (vmexec) {
|
||||
c->ci->stack[c->ci[1].acc] = value;
|
||||
}
|
||||
}
|
||||
|
||||
if (vmexec) {
|
||||
|
||||
Reference in New Issue
Block a user