Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resuming a fiber that yielded from instance_eval crosses C function boundary #3508

christopheraue opened this issue Mar 14, 2017 · 0 comments


Copy link

christopheraue commented Mar 14, 2017

eval works:

$ cat eval.mrb 
fiber ={ eval "Fiber.yield :yielded; :finished" }
p fiber.resume
p fiber.resume

$ mruby eval.mrb 

instance_eval does not:

$ cat instance_eval.mrb 
fiber ={ instance_eval "Fiber.yield :yielded; :finished" }
p fiber.resume
p fiber.resume

$ mruby instance_eval.mrb 
        [0] instance_eval.mrb:3
instance_eval.mrb:3: can't cross C function boundary (FiberError)
@matz matz closed this as completed in f8b31a0 Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

1 participant