aboutsummaryrefslogtreecommitdiffstats
path: root/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'load.c')
-rw-r--r--load.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/load.c b/load.c
index 83c5828b87..544357daba 100644
--- a/load.c
+++ b/load.c
@@ -608,9 +608,8 @@ rb_load_internal0(rb_execution_context_t *ec, VALUE fname, int wrap)
fname, rb_realpath_internal(Qnil, fname, 1), NULL);
rb_ast_dispose(ast);
}
- EXEC_EVENT_HOOK(ec, RUBY_EVENT_SCRIPT_COMPILED,
- ec->cfp->self, 0, 0, 0, (VALUE)iseq);
- rb_iseq_eval(iseq);
+ rb_exec_event_hook_script_compiled(ec, iseq, Qnil);
+ rb_iseq_eval(iseq);
}
EC_POP_TAG();