[ruby-cvs:72218] usa:r65118 (ruby_2_4): merge revision(s) 63067, 63068: [Backport #14658]

usa at ruby-lang.org usa at ruby-lang.org
Wed Oct 17 18:25:11 JST 2018


usa	2018-10-17 18:25:11 +0900 (Wed, 17 Oct 2018)

  New Revision: 65118

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65118

  Log:
    merge revision(s) 63067,63068: [Backport #14658]
    
    Fix Kernel#singleton_method with Module#Prepend
    
    * proc.c (rb_obj_singleton_method): search the method entry from
      the origin class, for fix prepended modules.  [Bug #14658]
    
    From: Vasiliy Ermolovich <younash at gmail.com>
    
    proc.c: fix segfault when no singleton class
    
    * proc.c (rb_obj_singleton_method): bail out if the receiver does
      not have the singleton class without accessing the origin class
      not to segfault.  [Bug #14658]

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/proc.c
    branches/ruby_2_4/test/ruby/test_method.rb
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list