From e6087d037fcd509bbf9f00af6b2f385fd2e041f1 Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 25 May 2008 08:55:09 +0000 Subject: * compile.c (iseq_compile): set local_table for ISEQ_TYPE_DEFINED_GUARD. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ compile.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 230318541..99297c88d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun May 25 17:54:36 2008 Yusuke Endoh + + * compile.c (iseq_compile): set local_table for + ISEQ_TYPE_DEFINED_GUARD. + Sun May 25 17:52:25 2008 Yusuke Endoh * compile.c (iseq_build_body): remove side effect from diff --git a/compile.c b/compile.c index cc068b112..a91b48ce2 100644 --- a/compile.c +++ b/compile.c @@ -268,6 +268,7 @@ iseq_compile(VALUE self, NODE *node) COMPILE_POPED(ret, "ensure", node); break; case ISEQ_TYPE_DEFINED_GUARD: + iseq_set_local_table(iseq, 0); COMPILE(ret, "defined guard", node); break; default: -- cgit