diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-05 15:01:42 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-05 15:01:42 +0000 |
commit | 837c76bd7baee9aaeebd94b4c0719094e1463ff5 (patch) | |
tree | bc4f51441208baf18a4f036ebca84313efff4ae8 /compile.c | |
parent | 6b1924b176a7a056ba8c703cb2cf2146ab081327 (diff) | |
download | ruby-837c76bd7baee9aaeebd94b4c0719094e1463ff5.tar.gz |
* compile.c (iseq_compile_each): should call compile_cpath() for
modules as well. [ruby-dev:34585]
* insns.def (defineclass): add undef handling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4310,7 +4310,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) rb_sprintf("<module:%s>", rb_id2name(node->nd_cpath->nd_mid)), ISEQ_TYPE_CLASS); - COMPILE(ret, "mbase", node->nd_cpath->nd_head); + compile_cpath(ret, iseq, node->nd_cpath); ADD_INSN (ret, nd_line(node), putnil); /* dummy */ ADD_INSN3(ret, nd_line(node), defineclass, ID2SYM(node->nd_cpath->nd_mid), iseqval, INT2FIX(2)); |