Skip to content
Permalink
Browse files
Need to setup singleton_class chain; fix #3509
  • Loading branch information
matz committed Mar 18, 2017
1 parent 38a3b89 commit fa502b498ed421a7bc95fb675ae0f4c6e2f1c16f
Showing 1 changed file with 1 addition and 0 deletions.
@@ -97,6 +97,7 @@ prepare_singleton_class(mrb_state *mrb, struct RBasic *o)
}
else {
sc->super = o->c;
prepare_singleton_class(mrb, (struct RBasic*)sc);
}
o->c = sc;
mrb_field_write_barrier(mrb, (struct RBasic*)o, (struct RBasic*)sc);

0 comments on commit fa502b4

Please sign in to comment.