From 3f9bf06c1d29bdc44d6e4fef9b79e572605a72b7 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 28 Jul 2009 18:14:11 +0000 Subject: * proc.c (rb_method_entry_arity): support not_implemented method. (I have no idea to test it) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- proc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index 3b83b17c3..1d5189a84 100644 --- a/proc.c +++ b/proc.c @@ -1487,6 +1487,9 @@ rb_method_entry_arity(const rb_method_entry_t *me) return -(iseq->argc + 1 + iseq->arg_post_len); } } + case VM_METHOD_TYPE_UNDEF: + case VM_METHOD_TYPE_NOTIMPLEMENTED: + return 0; case VM_METHOD_TYPE_OPTIMIZED: { switch (me->body.optimize_type) { case OPTIMIZED_METHOD_TYPE_SEND: @@ -1495,9 +1498,8 @@ rb_method_entry_arity(const rb_method_entry_t *me) break; } } - default: - rb_bug("rb_method_entry_arity: invalid method entry type (%d)", me->type); } + rb_bug("rb_method_entry_arity: invalid method entry type (%d)", me->type); } /* -- cgit