mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_insnhelper.c (vm_call_method): check argument number to
attr_reader. [ruby-core:15120] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64239e2291
commit
08c319ee2a
2 changed files with 35 additions and 26 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Jan 18 01:48:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_insnhelper.c (vm_call_method): check argument number to
|
||||
attr_reader. [ruby-core:15120]
|
||||
|
||||
Fri Jan 18 00:49:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_check_readable): flush tied write IO too.
|
||||
|
|
|
@ -508,7 +508,11 @@ vm_call_method(rb_thread_t *th, rb_control_frame_t *cfp,
|
|||
break;
|
||||
}
|
||||
case NODE_IVAR:{
|
||||
val = rb_ivar_get(recv, node->nd_vid);
|
||||
if (num != 0) {
|
||||
rb_raise(rb_eArgError, "wrong number of arguments (%d for 0)",
|
||||
num);
|
||||
}
|
||||
val = rb_attr_get(recv, node->nd_vid);
|
||||
cfp->sp -= 1;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue