summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index e954ac0d6..3ba1cad6a 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;