* 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:
parent
b6feeb2945
commit
6f8f0a86f5
@ -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>
|
Mon Sep 1 18:00:02 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (aref_args): forgot to call NEW_SPLAT(). reported by
|
* parse.y (aref_args): forgot to call NEW_SPLAT(). reported by
|
||||||
|
4
eval.c
4
eval.c
@ -2809,8 +2809,8 @@ rb_eval(self, n)
|
|||||||
POP_TAG();
|
POP_TAG();
|
||||||
if (state) JUMP_TAG(state);
|
if (state) JUMP_TAG(state);
|
||||||
/* no exception raised */
|
/* no exception raised */
|
||||||
if (node->nd_else) { /* else clause given */
|
if (node = node->nd_else) { /* else clause given */
|
||||||
result = rb_eval(self, node->nd_else);
|
goto again;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user