[ruby-cvs:69681] nobu:r62500 (trunk): error.c: bypass Exception.new

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Feb 20 19:08:27 JST 2018


nobu	2018-02-20 19:08:27 +0900 (Tue, 20 Feb 2018)

  New Revision: 62500

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

  Log:
    error.c: bypass Exception.new
    
    * error.c (rb_exc_new, rb_exc_new_str): instantiate exception
      object directly without Exception.new method call.
    
    Redefinition of class method `new` is an outdated style, and
    internal exceptions should not be affected by it.

  Modified files:
    trunk/bootstraptest/test_exception.rb
    trunk/error.c


More information about the ruby-cvs mailing list