[ruby-cvs:69340] kazu:r62159 (trunk): Fix call-seq of NameError.new

kazu at ruby-lang.org kazu at ruby-lang.org
Fri Feb 2 20:03:23 JST 2018


kazu	2018-02-02 20:03:23 +0900 (Fri, 02 Feb 2018)

  New Revision: 62159

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

  Log:
    Fix call-seq of NameError.new
    
    `NameError.new(1,2,3)` raises
    `wrong number of arguments (given 2, expected 0..1) (ArgumentError)`
    in `StrandardError#initialize`, so NameError can't accept 3 or more arguments.

  Modified files:
    trunk/error.c


More information about the ruby-cvs mailing list