diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2024-07-12 14:19:40 -0700 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2024-07-18 22:17:21 -0700 |
| commit | 1cc5a64dd87a6a474ec8387083d41a3c6c1c3ca5 (patch) | |
| tree | 7fa2e9963e3d3ec1a0011d4924916c9632a600c4 /spec/ruby/core/array | |
| parent | 4a49b060ae04b3ccb3880854ba08c6629344f7b3 (diff) | |
Avoid hash allocation for f(*r2k_ary) when def f(kw: 1)
When calling a method that accepts keywords but not a keyword
splat with a splatted array with a ruby2_keywords flagged hash,
there is no need to duplicate the ruby2_keywords flagged hash,
since it will be accessed to get the keyword values, but it will
not be modified.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11161
Diffstat (limited to 'spec/ruby/core/array')
0 files changed, 0 insertions, 0 deletions
