Skip to content

Commit

Permalink
Mark the proc object representing top-level as an internal object; #3621
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed May 29, 2017
1 parent abed375 commit cbd4aae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mrbgems/mruby-compiler/core/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cbd4aae

Please sign in to comment.