diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-22 01:43:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-22 01:43:59 +0000 |
commit | 19bbab6140847de08dd0278a7ebaae6b01352513 (patch) | |
tree | 45adc1914ed6ec3198dbc48b7a7d91c57f531ac0 /eval_intern.h | |
parent | 3b39217fb4f115129522207e083a4875beecf5e9 (diff) | |
download | ruby-19bbab6140847de08dd0278a7ebaae6b01352513.tar.gz |
* vm_eval.c (method_missing): should not pop cfp if missing method
is method_missing. [ruby-core:22298]
* vm_eval.c (rb_raise_method_missing): new function to directly
raise NoMethodError.
* vm_insnhelper.c (vm_call_method): fixed the case method_missing
is missing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r-- | eval_intern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eval_intern.h b/eval_intern.h index ac2999d3b9..a9d29ff5fb 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -195,6 +195,8 @@ NORETURN(void rb_fiber_start(void)); NORETURN(void rb_print_undef(VALUE, ID, int)); NORETURN(void rb_vm_localjump_error(const char *,VALUE, int)); NORETURN(void rb_vm_jump_tag_but_local_jump(int, VALUE)); +NORETURN(void rb_raise_method_missing(rb_thread_t *th, int argc, VALUE *argv, + VALUE obj, int call_status)); VALUE rb_vm_make_jump_tag_but_local_jump(int state, VALUE val); NODE *rb_vm_cref(void); |