mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (rb_call0): trace call/return of method defined from block.
fixed: [ruby-core:08329] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d28d1a2e0a
commit
799a6bc67b
2 changed files with 12 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
||||||
Sun Jul 30 23:04:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Jul 30 23:26:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (rb_call0): trace call/return of method defined from block.
|
||||||
|
fixed: [ruby-core:08329]
|
||||||
|
|
||||||
* eval.c (rb_trap_eval): make the current thread runnable to deal with
|
* eval.c (rb_trap_eval): make the current thread runnable to deal with
|
||||||
exceptions which occurred within the trap. fixed: [ruby-dev:27729]
|
exceptions which occurred within the trap. fixed: [ruby-dev:27729]
|
||||||
|
|
8
eval.c
8
eval.c
|
@ -5797,7 +5797,15 @@ rb_call0(VALUE klass, VALUE recv, ID id, ID oid,
|
||||||
case NODE_BMETHOD:
|
case NODE_BMETHOD:
|
||||||
PUSH_METHOD_FRAME();
|
PUSH_METHOD_FRAME();
|
||||||
ruby_frame->flags |= FRAME_DMETH;
|
ruby_frame->flags |= FRAME_DMETH;
|
||||||
|
if (event_hooks) {
|
||||||
|
struct BLOCK *data;
|
||||||
|
Data_Get_Struct(body->nd_cval, struct BLOCK, data);
|
||||||
|
EXEC_EVENT_HOOK(RUBY_EVENT_CALL, data->body, recv, id, klass);
|
||||||
|
}
|
||||||
result = proc_invoke(body->nd_cval, rb_ary_new4(argc, argv), recv, klass, 1);
|
result = proc_invoke(body->nd_cval, rb_ary_new4(argc, argv), recv, klass, 1);
|
||||||
|
if (event_hooks) {
|
||||||
|
EXEC_EVENT_HOOK(RUBY_EVENT_RETURN, body, recv, id, klass);
|
||||||
|
}
|
||||||
POP_FRAME();
|
POP_FRAME();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue