diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-22 14:59:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-22 14:59:25 +0000 |
commit | e99c018d87163c099ea9ca5dc31127552ce160c3 (patch) | |
tree | 9232ce6b00faf947ef926fb46fd1f2c6e18ed5a7 /eval.c | |
parent | a28006f959e36e11e6d7ca1cd82220c1d58b753b (diff) |
* 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
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4536,7 +4536,7 @@ return_jump(retval) } tt = tt->prev; } - proc_jump_error(TAG_RETURN, retval); + localjump_error("unexpected return", retval, TAG_RETURN); } static void @@ -4561,7 +4561,7 @@ break_jump(retval) } tt = tt->prev; } - proc_jump_error(TAG_BREAK, retval); + localjump_error("unexpected break", retval, TAG_BREAK); } static VALUE |