From bb5c451dd4c5ad30ad62d2cd6487658576097cb1 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 4 Jan 2021 07:42:21 +0900 Subject: Fix `mirb` not to be terminated by `codegen error`. --- mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index be73c2e86..b626024d1 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -650,9 +650,8 @@ main(int argc, char **argv) /* generate bytecode */ struct RProc *proc = mrb_generate_code(mrb, parser); if (proc == NULL) { - fputs("codegen error\n", stderr); mrb_parser_free(parser); - break; + continue; } if (args.verbose) { -- cgit v1.2.3