summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/shape.c b/shape.c
index 06dcb8d610..44f6cf7193 100644
--- a/shape.c
+++ b/shape.c
@@ -1266,6 +1266,13 @@ rb_shape_verify_consistency(VALUE obj, shape_id_t shape_id)
}
}
+ if (FL_TEST_RAW(obj, FL_EXIVAR)) {
+ RUBY_ASSERT(rb_obj_has_exivar(obj));
+ }
+ else {
+ RUBY_ASSERT(!rb_obj_has_exivar(obj));
+ }
+
return true;
}
#endif