mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (rb_eval): should not discard nested NODE_BLOCK.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8916851b50
commit
639ec76858
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Jan 9 16:31:51 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_eval): should not discard nested NODE_BLOCK.
|
||||
|
||||
Thu Jan 9 15:12:30 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* parse.y (stmt): NODE_NOT elimitation for if/unless/while/until node.
|
||||
|
|
3
eval.c
3
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;
|
||||
|
|
Loading…
Reference in a new issue