Switch mid dump to dump_append_string_value
I don't think it's possible to create a CI with a mid which would need escaping to be in a JSON string, but I think we might as well not rely on that assumption.
This commit is contained in:
parent
635b92099e
commit
1c871c08d9
@ -436,9 +436,8 @@ dump_object(VALUE obj, struct dump_config *dc)
|
|||||||
case imemo_callinfo:
|
case imemo_callinfo:
|
||||||
mid = vm_ci_mid((const struct rb_callinfo *)obj);
|
mid = vm_ci_mid((const struct rb_callinfo *)obj);
|
||||||
if (mid != 0) {
|
if (mid != 0) {
|
||||||
dump_append(dc, ", \"mid\":\"");
|
dump_append(dc, ", \"mid\":");
|
||||||
dump_append(dc, rb_id2name(mid));
|
dump_append_string_value(dc, rb_id2str(mid));
|
||||||
dump_append(dc, "\"");
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user