From a93136879e5bdfa4ac59669f9e25a0b9cf6c44f5 Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 25 May 2008 08:55:09 +0000 Subject: [PATCH] * compile.c (iseq_compile): set local_table for ISEQ_TYPE_DEFINED_GUARD. git-svn-id: svn+ssh://ci.ruby-lang.org/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 2303185419..99297c88df 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 cc068b112e..a91b48ce2f 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: