diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-02-28 09:39:16 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-03-01 10:55:53 -0500 |
commit | fb724a887aa239de2fb1920f769ea097bee37b01 (patch) | |
tree | 47985a2dbf1515f09874d4d31f6d87f894618195 /ext/objspace/objspace_dump.c | |
parent | 779090553680905b036abff550287d014b588f83 (diff) | |
download | ruby-fb724a887aa239de2fb1920f769ea097bee37b01.tar.gz |
Show embed status of array when len is 0 in objspace dump
Diffstat (limited to 'ext/objspace/objspace_dump.c')
-rw-r--r-- | ext/objspace/objspace_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index e958a831c5..b570acbd95 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -419,7 +419,7 @@ dump_object(VALUE obj, struct dump_config *dc) dump_append_ld(dc, RARRAY_LEN(obj)); if (RARRAY_LEN(obj) > 0 && FL_TEST(obj, ELTS_SHARED)) dump_append(dc, ", \"shared\":true"); - if (RARRAY_LEN(obj) > 0 && FL_TEST(obj, RARRAY_EMBED_FLAG)) + if (FL_TEST(obj, RARRAY_EMBED_FLAG)) dump_append(dc, ", \"embedded\":true"); break; |