1
0
Fork 0
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:
mame 2009-08-18 16:15:29 +00:00
parent 2772c80ce0
commit 74dc18c953
2 changed files with 6 additions and 0 deletions

View file

@ -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.

View file

@ -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);