Project

General

Profile

Actions

Bug #10638

closed

Keyword Hash processing is inconsistent

Added by brixen (Brian Shirai) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0dev (2014-06-05 trunk 46353) [x86_64-darwin13]
[ruby-core:67081]

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.

https://gist.github.com/brixen/fbd4a1cebb23ef6b4d85

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0