summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vm.c b/src/vm.c
index 7f49c0906..ca1def05f 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -2284,6 +2284,7 @@ mrb_toplevel_run(mrb_state *mrb, struct RProc *proc)
ci->acc = CI_ACC_SKIP;
ci->eidx = 0;
ci->ridx = 0;
+ ci->target_class = mrb->object_class;
v = mrb_context_run(mrb, proc, mrb_top_self(mrb), 0);
cipop(mrb);