Skip to content

Commit 56ec496

Browse files
committed
Moar debug
1 parent ff7de53 commit 56ec496

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

shape.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,8 @@ rb_shape_transition_add_ivar(VALUE obj, ID id)
940940

941941
rb_shape_t *next_shape = shape_get_next(RSHAPE(original_shape_id), obj, id, true);
942942
if (next_shape) {
943+
RUBY_ASSERT(next_shape->type == SHAPE_IVAR, "next_shape->type == %d", (int)next_shape->type);
944+
943945
return shape_id(next_shape, original_shape_id);
944946
}
945947
else {

0 commit comments

Comments
 (0)