Emit emit string not MAKE_STRING 0

This commit is contained in:
K. Lange 2022-07-10 19:16:01 +09:00
parent a3b2722707
commit feebd6e6a8

View File

@ -2802,7 +2802,7 @@ _nextStr:
emitConstant(OBJECT_VAL(bytes));
return;
}
if (stringLength) {
if (stringLength || !formatElements) {
emitConstant(OBJECT_VAL(krk_copyString(stringBytes,stringLength)));
formatElements++;
}