summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'load.c')
-rw-r--r--load.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/load.c b/load.c
index eec5e98947..d2ed55fed2 100644
--- a/load.c
+++ b/load.c
@@ -627,6 +627,8 @@ rb_load_internal0(rb_thread_t *th, VALUE fname, int wrap)
th->top_wrapper = wrapper;
if (state) {
+ /* usually state == TAG_RAISE only, except for
+ * rb_iseq_load_iseq case */
VALUE exc = rb_vm_make_jump_tag_but_local_jump(state, Qundef);
if (NIL_P(exc)) return state;
th->ec.errinfo = exc;