diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-28 18:14:11 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-28 18:14:11 +0000 |
commit | 497ee63f8d8c5df055efa6b8782a07ebdbcb0443 (patch) | |
tree | e31baf8445e375467352472559e373e2175fb5f3 | |
parent | 9050b61dcbee9bbd5ad9e494de65cd4cd3103af8 (diff) |
* proc.c (rb_method_entry_arity): support not_implemented method.
(I have no idea to test it)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | proc.c | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Jul 29 03:11:59 2009 Koichi Sasada <ko1@atdot.net> + + * proc.c (rb_method_entry_arity): support not_implemented method. + (I have no idea to test it) + Tue Jul 28 19:36:26 2009 Koichi Sasada <ko1@atdot.net> * proc.c (rb_method_entry_arity): support optimized method (send). @@ -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); } /* |