summaryrefslogtreecommitdiffstats
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
commit0512a3ab5a21f6969fc1b149de7b7ddd39881bdd (patch)
treeb6888bafd6dbc9ab5d7522970dc330d3589d5460 /eval_method.ci
parentb3c979c3e1e4fa36184b954f399fd0410f1000c4 (diff)
downloadruby-0512a3ab5a21f6969fc1b149de7b7ddd39881bdd.tar.gz
ruby-0512a3ab5a21f6969fc1b149de7b7ddd39881bdd.tar.xz
ruby-0512a3ab5a21f6969fc1b149de7b7ddd39881bdd.zip
* eval_method.ci (rb_alias): do not call hook functions until
initialization finishes. [ruby-talk:279538] git-svn-id: http://svn.ruby-lang.org/repos/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 ff4d3cb0a..a6b8264e2 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));
}