Commit 4bc416ca authored by Jiro Nishiguchi's avatar Jiro Nishiguchi

mrb_load_* should return value

parent 4b9ef5da
......@@ -4889,7 +4889,7 @@ load_exec(mrb_state *mrb, parser_state *p, mrbc_context *c)
if (c->no_exec) return mrb_fixnum_value(n);
}
v = mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb));
if (!mrb->exc) return mrb_undef_value();
if (mrb->exc) return mrb_undef_value();
return v;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment