summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-06-13 15:49:17 +0200
committerJean Boussier <jean.boussier@gmail.com>2025-06-13 23:50:30 +0200
commit6dbe24fe5641e5c86638ff5c5d9fe08ea31d196d (patch)
treebb982fdb111a536a47bfa4d9eb3bfa059e33ae2e /string.c
parentb51078f82ee35d532dfd5b6981733f757d410d79 (diff)
Use the `shape_id` rather than `FL_EXIVAR`
We still keep setting `FL_EXIVAR` so that `rb_shape_verify_consistency` can detect discrepancies.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13612
Diffstat (limited to 'string.c')
-rw-r--r--string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/string.c b/string.c
index 6ab768c244..049e824437 100644
--- a/string.c
+++ b/string.c
@@ -486,6 +486,7 @@ build_fstring(VALUE str, struct fstr_update_arg *arg)
RUBY_ASSERT(OBJ_FROZEN(str));
RUBY_ASSERT(!FL_TEST_RAW(str, STR_FAKESTR));
RUBY_ASSERT(!FL_TEST_RAW(str, FL_EXIVAR));
+ RUBY_ASSERT(!rb_obj_exivar_p(str));
RUBY_ASSERT(RBASIC_CLASS(str) == rb_cString);
RUBY_ASSERT(!rb_objspace_garbage_object_p(str));