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: