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

Closed
christopheraue opened this issue Mar 14, 2017 · 0 comments

Comments

@christopheraue
Copy link
Contributor

christopheraue commented Mar 14, 2017

eval works:

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

$ mruby eval.mrb 
:yielded
:finished

instance_eval does not:

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

$ mruby instance_eval.mrb 
:yielded
trace:
        [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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant