mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c (NODE_RETURN): fire return event at explicit return.
[ruby-dev:38701] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2772c80ce0
commit
74dc18c953
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Aug 19 01:08:34 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* compile.c (NODE_RETURN): fire return event at explicit return.
|
||||
[ruby-dev:38701]
|
||||
|
||||
Tue Aug 18 21:00:26 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* enumerator.c (enumerator_peek): new method Enumerator#peek.
|
||||
|
|
|
@ -4205,6 +4205,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
|
|||
|
||||
if (is->type == ISEQ_TYPE_METHOD) {
|
||||
add_ensure_iseq(ret, iseq, 1);
|
||||
ADD_TRACE(ret, nd_line(node), RUBY_EVENT_RETURN);
|
||||
ADD_INSN(ret, nd_line(node), leave);
|
||||
ADD_ADJUST_RESTORE(ret, splabel);
|
||||
|
||||
|
|
Loading…
Reference in a new issue