From: brixen@... Date: 2014-12-23T20:47:42+00:00 Subject: [ruby-core:67083] [ruby-trunk - Bug #10638] Keyword Hash processing is inconsistent Issue #10638 has been updated by Brian Shirai. Sorry, I had an old MRI version selected in chruby, this appears to work correctly on trunk. ---------------------------------------- Bug #10638: Keyword Hash processing is inconsistent https://bugs.ruby-lang.org/issues/10638#change-50597 * Author: Brian Shirai * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: ruby 2.2.0dev (2014-06-05 trunk 46353) [x86_64-darwin13] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- 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 -- https://bugs.ruby-lang.org/