Skip to content

Conversation

@headius
Copy link
Member

@headius headius commented Aug 20, 2025

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 headius added this to the JRuby 9.4.14.0 milestone Aug 20, 2025
@headius headius merged commit 5187f4e into jruby:jruby-9.4 Aug 20, 2025
97 checks passed
@headius headius deleted the enumerable_to_h_args branch August 20, 2025 17:40
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