Skip to content

Fix Hash#reject#4951

Merged
enebo merged 1 commit intojruby:masterfrom
yui-knk:test_reject
Jan 8, 2018
Merged

Fix Hash#reject#4951
enebo merged 1 commit intojruby:masterfrom
yui-knk:test_reject

Conversation

@yui-knk
Copy link
Contributor

@yui-knk yui-knk commented Jan 8, 2018

In MRI, Hash#reject

  • creates new hash
  • sets keys & values if block returns false

This commit will fix #test_reject.

Ref: https://github.com/ruby/ruby/blob/v2_4_0/hash.c#L1328

In MRI, `Hash#reject`

* creates new hash
* sets keys & values if block returns false

This commit will fix `#test_reject`.

Ref: https://github.com/ruby/ruby/blob/v2_4_0/hash.c#L1328
@enebo enebo added this to the JRuby 9.2.0.0 milestone Jan 8, 2018
@enebo enebo merged commit 9504a1c into jruby:master Jan 8, 2018
@enebo
Copy link
Member

enebo commented Jan 8, 2018

@yui-knk if you realize some of these are also fixes for Ruby 2.3 support I encourage you to submit PRs in those cases against jruby-9.1 branch. We will merge that branch back to master so both releases get the same fixes.

@yui-knk
Copy link
Contributor Author

yui-knk commented Jan 8, 2018

I see, thank you for your advice!

@yui-knk yui-knk deleted the test_reject branch January 8, 2018 23:10
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

Successfully merging this pull request may close these issues.

2 participants