diff --git a/ChangeLog b/ChangeLog index 896e0b2814..1c50f840ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jan 9 16:31:51 2003 Yukihiro Matsumoto + + * eval.c (rb_eval): should not discard nested NODE_BLOCK. + Thu Jan 9 15:12:30 2003 Yukihiro Matsumoto * parse.y (stmt): NODE_NOT elimitation for if/unless/while/until node. diff --git a/eval.c b/eval.c index e954ac0d67..3ba1cad6a5 100644 --- a/eval.c +++ b/eval.c @@ -2226,7 +2226,8 @@ rb_eval(self, n) switch (nd_type(node)) { case NODE_BLOCK: if (contnode) { - rb_bug("nested NODE_BLOCK"); + result = rb_eval(self, node); + break; } contnode = node->nd_next; node = node->nd_head;