summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-09 07:33:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-09 07:33:27 +0000
commit7b2cc3097c611605ad2b7a8284674ca552a85859 (patch)
treed1befffabe67a568b8257aafac5b013174facd7e /eval.c
parent1a9d0f4d6a709b016026aeb2e40f2115eeb82f88 (diff)
downloadruby-7b2cc3097c611605ad2b7a8284674ca552a85859.tar.gz
ruby-7b2cc3097c611605ad2b7a8284674ca552a85859.tar.xz
ruby-7b2cc3097c611605ad2b7a8284674ca552a85859.zip
* eval.c (rb_eval): should not discard nested NODE_BLOCK.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;