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

* eval.c (return_jump, break_jump): raise unexpceted local jump

exception directly.  [ruby-dev:23740]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2004-06-22 14:59:25 +00:00
parent a28006f959
commit e99c018d87
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Tue Jun 22 23:59:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (return_jump, break_jump): raise unexpceted local jump
exception directly. [ruby-dev:23740]
Tue Jun 22 23:35:43 2004 NAKAMURA Usaku <usa@ruby-lang.org> Tue Jun 22 23:35:43 2004 NAKAMURA Usaku <usa@ruby-lang.org>
* sprintf.c (rb_f_sprintf): support FZERO and FSPACE with NaN/Inf. * sprintf.c (rb_f_sprintf): support FZERO and FSPACE with NaN/Inf.

4
eval.c
View file

@ -4536,7 +4536,7 @@ return_jump(retval)
} }
tt = tt->prev; tt = tt->prev;
} }
proc_jump_error(TAG_RETURN, retval); localjump_error("unexpected return", retval, TAG_RETURN);
} }
static void static void
@ -4561,7 +4561,7 @@ break_jump(retval)
} }
tt = tt->prev; tt = tt->prev;
} }
proc_jump_error(TAG_BREAK, retval); localjump_error("unexpected break", retval, TAG_BREAK);
} }
static VALUE static VALUE