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

* vm_insnhelper.c (vm_throw): regard break as return in lambda.

[ruby-dev:34646]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
wanabe 2008-06-08 11:18:54 +00:00
parent a99140631c
commit 9393cc45c2
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Jun 8 20:12:47 2008 wanabe <s.wanabe@gmail.com>
* vm_insnhelper.c (vm_throw): regard break as return in lambda.
[ruby-dev:34646]
Sun Jun 8 19:17:59 2008 Koichi Sasada <ko1@atdot.net>
* gc.c: add a build option "CALC_EXACT_MALLOC_SIZE".

View file

@ -1234,7 +1234,8 @@ vm_throw(rb_thread_t *th, rb_control_frame_t *reg_cfp,
if (VM_FRAME_TYPE(cfp) == FRAME_MAGIC_LAMBDA) {
/* lambda{... break ...} */
is_orphan = 0;
pt = dfp;
pt = GET_LFP();
state = TAG_RETURN;
}
else {
dfp = GC_GUARDED_PTR_REF((VALUE *) *dfp);