mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_args.c: rb_exc_set_backtrace
* vm_args.c (raise_argument_error): call rb_exc_set_backtrace directly instead of funcall. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
31929bab1f
commit
0eb1ac5b39
1 changed files with 3 additions and 1 deletions
|
@ -667,6 +667,8 @@ setup_parameters_complex(rb_thread_t * const th, const rb_iseq_t * const iseq, r
|
|||
return opt_pc;
|
||||
}
|
||||
|
||||
VALUE rb_exc_set_backtrace(VALUE exc, VALUE bt);
|
||||
|
||||
static void
|
||||
raise_argument_error(rb_thread_t *th, const rb_iseq_t *iseq, const VALUE exc)
|
||||
{
|
||||
|
@ -683,7 +685,7 @@ raise_argument_error(rb_thread_t *th, const rb_iseq_t *iseq, const VALUE exc)
|
|||
}
|
||||
|
||||
rb_ivar_set(exc, idBt_locations, at);
|
||||
rb_funcall(exc, rb_intern("set_backtrace"), 1, at);
|
||||
rb_exc_set_backtrace(exc, at);
|
||||
rb_exc_raise(exc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue