Mark the proc object representing top-level as an internal object;
MODIFY
mrbgems/mruby-compiler/core/codegen.c
mrbgems/mruby-compiler/core/codegen.c
@@ -2983,6 +2983,7 @@ mrb_generate_code(mrb_state *mrb, parser_state *p)
proc = mrb_proc_new(mrb, scope->irep);
mrb_irep_decref(mrb, scope->irep);
mrb_pool_close(scope->mpool);
+ proc->c = NULL;
return proc;
}
MRB_CATCH(&scope->jmp) {

Mark the proc object representing top-level as an internal object; #3621