aboutsummaryrefslogtreecommitdiffstats
path: root/eval_method.ci
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-18 05:03:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-18 05:03:46 +0000
commitc719cd9b463049932ae1dc1af5a6a1b50609cbef (patch)
treeb6888bafd6dbc9ab5d7522970dc330d3589d5460 /eval_method.ci
parent16dc06014c00f3fcf6d1387740f016def024b08b (diff)
downloadruby-c719cd9b463049932ae1dc1af5a6a1b50609cbef.tar.gz
* eval_method.ci (rb_alias): do not call hook functions until
initialization finishes. [ruby-talk:279538] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_method.ci')
-rw-r--r--eval_method.ci2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval_method.ci b/eval_method.ci
index ff4d3cb0a5..a6b8264e2b 100644
--- a/eval_method.ci
+++ b/eval_method.ci
@@ -603,6 +603,8 @@ rb_alias(VALUE klass, ID name, ID def)
rb_clear_cache_by_id(name);
+ if (!ruby_running) return;
+
if (singleton) {
rb_funcall(singleton, singleton_added, 1, ID2SYM(name));
}