aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index 42eba6eb25..78e33b0d96 100644
--- a/iseq.c
+++ b/iseq.c
@@ -231,6 +231,10 @@ set_relation(rb_iseq_t *iseq, const VALUE parent)
GetISeqPtr(parent, piseq);
iseq->parent_iseq = piseq;
}
+
+ if (type == ISEQ_TYPE_MAIN) {
+ iseq->local_iseq = iseq;
+ }
}
static VALUE