-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Hash#select! inconsistency with MRI when yielding only one argument #3137
Comments
you mean JRuby 1.7.x right? ... there's been a similar issue with |
@kares : Actually I did not test with 1.7, just with JRuby 9000 |
quick test - 1.7.x behaves fine (compatibly with MRI 1.9.3) thus marking as 9K :
|
This one is non-trivial to fix atm but it is pretty important so we will target this (along with several other block parameter bugs for first point release after release. |
yieldSpecific with two args to a proc which receives one arg is broken atm but I changed these all to yieldArray. I would try and fix yieldSpecific but we have a much larger task for blocks and it will get handled then. |
Thanks for fixing this ! |
Hello,
There's a tiny behavioral difference between MRI and JRuby regarding the
Hash#select!
method when there's only one argument passed to the method's block:The problem seems to be in keep_ifCommon ; I tried to write a fix but I haven't been able to.
Have a nice day!
The text was updated successfully, but these errors were encountered: