summaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 20:27:10 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 20:27:10 +0000
commit7accb2da5425398fb1edae9407a7edb4dec81a4e (patch)
tree3edf55b5163c4bc8ec02c121bc680021cf321383 /compile.c
parent1a060a2e99e835cc2c6b32f113f4c07bc9616364 (diff)
downloadruby-7accb2da5425398fb1edae9407a7edb4dec81a4e.tar.gz
ruby-7accb2da5425398fb1edae9407a7edb4dec81a4e.tar.xz
ruby-7accb2da5425398fb1edae9407a7edb4dec81a4e.zip
* compile.c (iseq_compile): clear local table if node == 0.
a patch from Yusuke ENDOH <mame AT tsg.ne.jp> * vm.c: clear VM stack. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index a3dea4179..22f5c6260 100644
--- a/compile.c
+++ b/compile.c
@@ -145,6 +145,7 @@ iseq_compile(VALUE self, NODE *node)
if (node == 0) {
COMPILE(ret, "nil", node);
+ iseq_set_local_table(iseq, 0);
}
else if (nd_type(node) == NODE_SCOPE) {
/* iseq type of top, method, class, block */