mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
too much backout
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
76204d7a52
commit
49655c4295
1 changed files with 2 additions and 2 deletions
4
eval.c
4
eval.c
|
|
@ -3647,8 +3647,8 @@ rb_yield_0(val, self, klass, pcall)
|
|||
int state;
|
||||
static unsigned serial = 1;
|
||||
|
||||
if (!(rb_block_given_p() || rb_f_block_given_p())) {
|
||||
rb_raise(rb_eLocalJumpError, "yield called out of block");
|
||||
if (!rb_block_given_p()) {
|
||||
rb_raise(rb_eLocalJumpError, "no block given");
|
||||
}
|
||||
|
||||
PUSH_VARS();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue