Skip to content

Commit

Permalink
Hide OP_EXEC lambda body from ObjectSpace#each_object; fix #3680
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Jun 1, 2017
1 parent 90fb4dd commit 72b635f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vm.c
Expand Up @@ -2609,6 +2609,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)


/* prepare closure */ /* prepare closure */
p = mrb_closure_new(mrb, irep->reps[GETARG_Bx(i)]); p = mrb_closure_new(mrb, irep->reps[GETARG_Bx(i)]);
p->c = NULL;


/* prepare stack */ /* prepare stack */
ci = cipush(mrb); ci = cipush(mrb);
Expand Down

0 comments on commit 72b635f

Please sign in to comment.