1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (rb_eval): make tail recursion in ELSE clause of

RESCUE a jump.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-09-01 09:34:30 +00:00
parent b6feeb2945
commit 6f8f0a86f5
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon Sep 1 18:34:25 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_eval): make tail recursion in ELSE clause of
RESCUE a jump.
Mon Sep 1 18:00:02 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (aref_args): forgot to call NEW_SPLAT(). reported by

4
eval.c
View file

@ -2809,8 +2809,8 @@ rb_eval(self, n)
POP_TAG();
if (state) JUMP_TAG(state);
/* no exception raised */
if (node->nd_else) { /* else clause given */
result = rb_eval(self, node->nd_else);
if (node = node->nd_else) { /* else clause given */
goto again;
}
}
break;