Skip to content

Commit bb2cbce

Browse files
committed
more fstrings
1 parent acdf193 commit bb2cbce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compile.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2254,8 +2254,9 @@ compile_dstr_fragments(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE *node, int *cntp)
22542254

22552255
debugp_param("nd_lit", lit);
22562256
if (!NIL_P(lit)) {
2257-
hide_obj(lit);
22582257
cnt++;
2258+
if (RB_TYPE_P(lit, T_STRING))
2259+
lit = node->nd_lit = rb_fstring(node->nd_lit);
22592260
ADD_INSN1(ret, nd_line(node), putobject, lit);
22602261
}
22612262

0 commit comments

Comments
 (0)