diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 20:27:10 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 20:27:10 +0000 |
commit | 7accb2da5425398fb1edae9407a7edb4dec81a4e (patch) | |
tree | 3edf55b5163c4bc8ec02c121bc680021cf321383 /compile.c | |
parent | 1a060a2e99e835cc2c6b32f113f4c07bc9616364 (diff) | |
download | ruby-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |