зеркало из https://github.com/github/ruby.git
* 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:
Родитель
a99140631c
Коммит
9393cc45c2
|
@ -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".
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче