summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-07-19 22:32:55 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-07-19 22:32:55 -0700
commitc98134905fe0db2fb83c930a1b009e3198f76ac0 (patch)
tree4a4182fa366b62942ed945a6ce672d3823a8d3f3 /src
parent4b9ef5dabee09115edc15ecad05b335ecfaf598d (diff)
parent4bc416cae97283db07e8eb9dc695dd89814e4387 (diff)
downloadmruby-c98134905fe0db2fb83c930a1b009e3198f76ac0.tar.gz
mruby-c98134905fe0db2fb83c930a1b009e3198f76ac0.zip
Merge pull request #387 from spiritloose/mrb_load_return_value
mrb_load_* should return value
Diffstat (limited to 'src')
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 0c589d822..87962b4bb 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -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;
}