summaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-26 02:26:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-26 02:26:08 +0000
commit256252ad894a217257ede63e5f8a779864ca933a (patch)
treefa18dbdc23917c331e91fdb7ae9b7f41e91a5867 /variable.c
parentf16bd7575f293c34e14cf9e5ce54f034470b2196 (diff)
downloadruby-256252ad894a217257ede63e5f8a779864ca933a.tar.gz
ruby-256252ad894a217257ede63e5f8a779864ca933a.tar.xz
ruby-256252ad894a217257ede63e5f8a779864ca933a.zip
* variable.c (rb_mod_const_missing): "const_missing" should not
appear in the caller(); add call frame adjustment. * eval.c (rb_method_missing): simplify call frame adjustment. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index 4455d04ec..fd7ff2229 100644
--- a/variable.c
+++ b/variable.c
@@ -1128,6 +1128,7 @@ VALUE
rb_mod_const_missing(klass, name)
VALUE klass, name;
{
+ ruby_frame = ruby_frame->prev; /* pop frame for "const_missing" */
uninitialized_constant(klass, rb_to_id(name));
return Qnil; /* not reached */
}