зеркало из https://github.com/github/ruby.git
* 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:
Родитель
99e2ecdebf
Коммит
894d8d9e61
|
@ -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>
|
||||
|
||||
* 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();
|
||||
if (state) goto pop_state;
|
||||
}
|
||||
if (!node) goto pop_state;
|
||||
if (!node) {
|
||||
state = 0;
|
||||
goto pop_state;
|
||||
}
|
||||
|
||||
PUSH_ITER(block->iter);
|
||||
PUSH_TAG(PROT_NONE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче