summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-11-13 15:48:13 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-11-13 15:48:13 +0900
commitedd6c17c1e21e8ecc65241625fecb60e8deb4455 (patch)
treeb89a0c2cb710403be0365aaf3411422f11261f0c /src
parent08e6bd47a02e2dbaf3d96f385caee102f95a26a1 (diff)
downloadmruby-edd6c17c1e21e8ecc65241625fecb60e8deb4455.tar.gz
mruby-edd6c17c1e21e8ecc65241625fecb60e8deb4455.zip
load_exec() no longer return fixnum value for no_exec; should close #1569
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 8b4348a77..63204dfb0 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -5381,7 +5381,7 @@ load_exec(mrb_state *mrb, parser_state *p, mrbc_context *c)
if (proc == NULL) {
static const char msg[] = "codegen error";
mrb->exc = mrb_obj_ptr(mrb_exc_new(mrb, E_SCRIPT_ERROR, msg, sizeof(msg) - 1));
- return mrb_nil_value();
+ return mrb_undef_value();
}
if (c) {
if (c->dump_result) codedump_all(mrb, proc);