Skip to content

Commit

Permalink
Mark proc objects representing methods as internal objects; fix #3621
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed May 29, 2017
1 parent 02670ff commit abed375
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ mrb_define_method_raw(mrb_state *mrb, struct RClass *c, mrb_sym mid, struct RPro
k = kh_put(mt, mrb, h, mid);
kh_value(h, k) = p;
if (p) {
p->c = NULL;
mrb_field_write_barrier(mrb, (struct RBasic *)c, (struct RBasic *)p);
}
}
Expand Down

0 comments on commit abed375

Please sign in to comment.