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

parent abed375e
......@@ -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) {
......
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