aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-02-27 08:31:47 -0500
committerKevin Newton <kddnewton@gmail.com>2024-02-28 10:58:04 -0500
commit742abbf7705d69314373c6255784af02bbe72882 (patch)
tree5a3295d4247cebbc1098cf6287bf57ffd792110c /iseq.c
parent7b69563b365317fb9c70e4bed996b5871ef7889a (diff)
downloadruby-742abbf7705d69314373c6255784af02bbe72882.tar.gz
Switch {prism: true} to {parser: :prism} in ISeq.to_a
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 36fbe9d2f4..a63516c02b 100644
--- a/iseq.c
+++ b/iseq.c
@@ -3380,7 +3380,7 @@ iseq_data_to_ary(const rb_iseq_t *iseq)
#ifdef USE_ISEQ_NODE_ID
rb_hash_aset(misc, ID2SYM(rb_intern("node_ids")), node_ids);
#endif
- rb_hash_aset(misc, ID2SYM(rb_intern("prism")), iseq_body->prism ? Qtrue : Qfalse);
+ rb_hash_aset(misc, ID2SYM(rb_intern("parser")), iseq_body->prism ? ID2SYM(rb_intern("prism")) : ID2SYM(rb_intern("parse.y")));
/*
* [:magic, :major_version, :minor_version, :format_type, :misc,