FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Pass multi-elt array key for to_h using yieldArray by headius · Pull Request #8968 · jruby/jruby · GitHub

/ jruby Public

Pass multi-elt array key for to_h using yieldArray - #8968

Merged
headius merged 1 commit into
jruby:jruby-9.4from
headius:enumerable_to_h_args
Aug 20, 2025
Merged

Pass multi-elt array key for to_h using yieldArray#8968
headius merged 1 commit into
jruby:jruby-9.4from
headius:enumerable_to_h_args

Conversation

headius commented Aug 20, 2025

Copy link
Copy Markdown
Member

When incoming argument list contains arguments of the form ([1, 2], 3), ensure the first element is passed as an array to the to_h block, rather than yielded as a splattable argument list.

Fixes part of #8435

See ruby/spec#1283 for some discussion about how to write a spec for this behavior.

When incoming argument list contains arguments of the form
([1, 2], 3), ensure the first element is passed as an array to the
to_h block, rather than yielded as a splattable argument list.

Fixes part of jruby#8435

See ruby/spec#1283 for some discussion about how to write a spec
for this behavior.
headius added this to the JRuby 9.4.14.0 milestone Aug 20, 2025
headius merged commit 5187f4e into jruby:jruby-9.4 Aug 20, 2025
97 checks passed
headius deleted the enumerable_to_h_args branch August 20, 2025 17:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL