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

Segmentation fault when use block arg #3227

Closed
ksss opened this issue Oct 20, 2016 · 0 comments
Closed

Segmentation fault when use block arg #3227

ksss opened this issue Oct 20, 2016 · 0 comments

Comments

@ksss
Copy link
Contributor

ksss commented Oct 20, 2016

I found some segmentation fault cases.

Proc.new &1
Class.new {
  define_method :foo, &1
}

Now, mruby call to_proc when last argument of method call set & prefix.
But, This behavior only works on the OP_ENTER. C funcs doesn't.

@matz matz closed this as completed in 6fd0e60 Oct 20, 2016
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