Permalink
Browse files

Mark proc objects representing methods as internal objects; fix #3621

  • Loading branch information...
matz committed May 29, 2017
1 parent 02670ff commit abed375ea669c2b8863cd0b253e6b9508b4950bb
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/class.c
View
@@ -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);
}
}

0 comments on commit abed375

Please sign in to comment.