Actions
Bug #10638
closedKeyword Hash processing is inconsistent
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0dev (2014-06-05 trunk 46353) [x86_64-darwin13]
Backport:
Description
An empty Hash passed to a method taking a keyword rest argument is not dup'd. A modification to the keyword rest Hash in the method modifies the object passed to the method.
This behavior differs from passing a non-empty Hash.
Updated by headius (Charles Nutter) almost 10 years ago
- Status changed from Open to Closed
Works ok on current trunk (48948).
Updated by brixen (Brian Shirai) almost 10 years ago
Sorry, I had an old MRI version selected in chruby, this appears to work correctly on trunk.
Updated by ko1 (Koichi Sasada) almost 10 years ago
- Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED
2.1, 2.0 have same problem.
- ruby 2.1.5p274 (2014-11-27 revision 48610) [i386-mswin32_110]
- ruby 2.0.0p606 (2014-11-28 revision 48636) [i386-mswin32_110]
Actions
Like0
Like0Like0Like0