[ruby-cvs:67906] ko1:r60725 (trunk): fix backtrace on argment error.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Nov 9 14:22:51 JST 2017


ko1	2017-11-09 14:22:51 +0900 (Thu, 09 Nov 2017)

  New Revision: 60725

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

  Log:
    fix backtrace on argment error.
    
    * vm_backtrace.c (rb_backtrace_use_iseq_first_lineno_for_last_location):
      added. It modifies last location's line as corresponding iseq's first line
      number.
    
    * vm_args.c (raise_argument_error): use added function.

  Modified files:
    trunk/test/ruby/test_method.rb
    trunk/vm_args.c
    trunk/vm_backtrace.c


More information about the ruby-cvs mailing list