summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/shared/replace.rb
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2020-02-03 12:29:37 +0100
committerNARUSE, Yui <naruse@airemix.jp>2020-03-15 19:35:24 +0900
commitc6944377d798e088042f2944b81aa3fa8a4e5411 (patch)
tree387d2abf013d30ef746332487868eaff307cf512 /spec/ruby/core/array/shared/replace.rb
parentd07a6dc10efa71123b36a4a3ff7d2ec6e52804d7 (diff)
Fix SimpleDelegator respond_to? regression
In 2.6, SimpleDelegator would always use the target `respond_to?` In 2.7.0 it doesn't if the target does not inherit from Object. This breaks compatibility for delegated objects that inherit from BasicObject and redefine `respond_to?`. [Bug #16606] (cherry picked from commit f2552216d43040cd42bbb9fd484eab6c70856fe6)
Diffstat (limited to 'spec/ruby/core/array/shared/replace.rb')
0 files changed, 0 insertions, 0 deletions