From 74dc18c9532d8e399b37ad3fb272cc9cbd8bd7e3 Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 18 Aug 2009 16:15:29 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ compile.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0ff22013d8..bc8eda72cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 19 01:08:34 2009 Yusuke Endoh + + * compile.c (NODE_RETURN): fire return event at explicit return. + [ruby-dev:38701] + Tue Aug 18 21:00:26 2009 Tanaka Akira * enumerator.c (enumerator_peek): new method Enumerator#peek. diff --git a/compile.c b/compile.c index f01b287be8..c9bc1ce8f6 100644 --- a/compile.c +++ b/compile.c @@ -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);