mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (rb_yield_0): no error if block is empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
99e2ecdebf
commit
894d8d9e61
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Oct 9 10:51:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (rb_yield_0): no error if block is empty.
|
||||||
|
|
||||||
Thu Oct 9 06:43:33 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Oct 9 06:43:33 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (localjump_error): id should be ID.
|
* eval.c (localjump_error): id should be ID.
|
||||||
|
|
5
eval.c
5
eval.c
|
@ -4162,7 +4162,10 @@ rb_yield_0(val, self, klass, flags, avalue)
|
||||||
POP_TAG();
|
POP_TAG();
|
||||||
if (state) goto pop_state;
|
if (state) goto pop_state;
|
||||||
}
|
}
|
||||||
if (!node) goto pop_state;
|
if (!node) {
|
||||||
|
state = 0;
|
||||||
|
goto pop_state;
|
||||||
|
}
|
||||||
|
|
||||||
PUSH_ITER(block->iter);
|
PUSH_ITER(block->iter);
|
||||||
PUSH_TAG(PROT_NONE);
|
PUSH_TAG(PROT_NONE);
|
||||||
|
|
Loading…
Reference in a new issue