summaryrefslogtreecommitdiff
path: root/spec/ruby/core/method/element_reference_spec.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-02-24 13:19:37 -0800
committerNARUSE, Yui <naruse@airemix.jp>2020-03-15 19:35:24 +0900
commite70d52b0c377f8b2ed04311710c0ca9f4ebabd90 (patch)
treeb02a277cc2dfeddfbd72ee06e70bdd24f897f1aa /spec/ruby/core/method/element_reference_spec.rb
parentb3fabedc7043593812c9ad507b4648a55d74df99 (diff)
Make ruby2_keywords methods correctly handle **{} optimization
Previously, this code: ruby2_keywords def foo(*a) a.last end foo(**{}) Returned an empty frozen hash. However, the final hash should not be frozen in this case, as it wouldn't be if foo accepted a keyword splat. Use a new unfrozen empty hash instead of reusing the frozen empty hash in this case. Fixes [Bug #16642]
Diffstat (limited to 'spec/ruby/core/method/element_reference_spec.rb')
0 files changed, 0 insertions, 0 deletions
92e51e21f040'>Add frozen_string_literal: false for all filesnaruse 2015-11-20* lib/rss/syndication.rb: Add nodoc marker for #validate_sy_updatePeriod.hsbt 2015-09-05rss.rb: don't substitute, just searchnobu 2015-09-05rss.rb: fix usec widthnobu 2014-06-14Restore date field.akr 2014-05-04* lib/time.rb (Time.force_zone!): New private method.akr 2014-05-03* lib/time.rb (make_time): Produce fixed-offset time object ifakr 2014-01-19* lib/cgi/html.rb: fix typo by @windwiny [fix GH-506]hsbt 2013-12-22* doc/ChangeLog-1.9.3: [DOC] Fix typos by @dvsureshzzak 2013-12-22* lib/{rake,rdoc,rss}/*, test/rexml/test_listener.rb: [DOC] Fix typoszzak 2013-11-09* lib/rss/*: [DOC] document various constants @steveklabnik [Bug #8812]zzak 2013-11-09* lib/rss/rss.rb: [DOC] document Time#w3cdtf by @steveklabnikzzak 2013-08-19* lib/rss/rss.rb: [DOC] Document for constants by Steve Klabnikzzak 2013-08-19* lib/rss/xmlparser.rb: [DOC] Hide legacy constant from rdoczzak 2013-08-09* lib/rss/trackback.rb: [DOC] Hide RSS::Trackback from rdoczzak 2013-08-09* lib/rss/rexmlparser.rb: Remove needless REXML version check.kou 2013-08-06* lib/rss/utils.rb: [DOC] RSS::Utils by Steve Klabnik [Bug #8745]zzak 2013-08-06* lib/rss/1.0.rb: [DOC] Document RSS110 by Steve Klabnik [Bug #8740]zzak 2013-08-05* lib/rss/0.9.rb: [DOC] Typo in example [Bug #8732]zzak 2013-08-05* lib/rss/2.0.rb: [DOC] Document RSS::Rss by Steve Klabnik #8740zzak 2013-08-04* lib/rss/0.9.rb: [DOC] Document RSS09 by Steve Klabnik [Bug #8732]zzak 2013-04-26* lib/rss/atom.rb (RSS::Atom::Entry): Fix indent of document comment.kou 2013-04-26* lib/rss/maker.rb (RSS::Maker): Fix indent of document comment.kou 2013-04-26* lib/rss/atom.rb: Documentation for RSS::Atom based on a patch byzzak 2012-11-16* lib/cgi/core.rb: Use symbols instead of strings formarcandre