[ruby-cvs:54793] nobu:r47645 (trunk): vm_eval.c: fix super from eval with scope

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Sep 20 07:56:00 JST 2014


nobu	2014-09-20 07:55:59 +0900 (Sat, 20 Sep 2014)

  New Revision: 47645

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

  Log:
    vm_eval.c: fix super from eval with scope
    
    * vm_eval.c (eval_string_with_cref): fix super from eval with
      scope.  set klass in the current control frame to the class of
      the receiver in the context to be evaluated, this class/module
      must match the actual receiver to call super.
      [ruby-core:65122] [Bug #10263]

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_super.rb
    trunk/vm_eval.c


More information about the ruby-cvs mailing list