Permalink
Browse files

replace mrb_toplevel_run() by mrb_top_run()

  • Loading branch information...
matz committed Jan 7, 2016
1 parent 258cb20 commit f3cce24035a1dba71f47645a556188ece430bf40
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/load.c
View
@@ -635,7 +635,7 @@ mrb_load_irep_cxt(mrb_state *mrb, const uint8_t *bin, mrbc_context *c)
proc = mrb_proc_new(mrb, irep);
mrb_irep_decref(mrb, irep);
if (c && c->no_exec) return mrb_obj_value(proc);
return mrb_toplevel_run(mrb, proc);
return mrb_top_run(mrb, proc, mrb_top_self(mrb), 0);
}
MRB_API mrb_value
@@ -697,7 +697,7 @@ mrb_load_irep_file_cxt(mrb_state *mrb, FILE* fp, mrbc_context *c)
mrb_irep_decref(mrb, irep);
if (c && c->dump_result) mrb_codedump_all(mrb, proc);
if (c && c->no_exec) return mrb_obj_value(proc);
val = mrb_toplevel_run(mrb, proc);
val = mrb_top_run(mrb, proc, mrb_top_self(mrb), 0);
return val;
}

0 comments on commit f3cce24

Please sign in to comment.