mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
vm.c: pass through thrown objects
* vm.c (rb_vm_jump_tag_but_local_jump): pass through thrown objects. [ruby-dev:46234] [Bug #7185] * vm_eval.c (rb_eval_cmd): if state is non-zero, val should be nil and rb_vm_jump_tag_but_local_jump() just jump tag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b0e40509c3
commit
2fe13f62ef
4 changed files with 19 additions and 2 deletions
|
@ -1335,7 +1335,7 @@ rb_eval_cmd(VALUE cmd, VALUE arg, int level)
|
|||
POP_TAG();
|
||||
|
||||
rb_set_safe_level_force(safe);
|
||||
if (state) rb_vm_jump_tag_but_local_jump(state, val);
|
||||
if (state) JUMP_TAG(state);
|
||||
return val;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue