Emit emit string not MAKE_STRING 0
This commit is contained in:
parent
a3b2722707
commit
feebd6e6a8
@ -2802,7 +2802,7 @@ _nextStr:
|
||||
emitConstant(OBJECT_VAL(bytes));
|
||||
return;
|
||||
}
|
||||
if (stringLength) {
|
||||
if (stringLength || !formatElements) {
|
||||
emitConstant(OBJECT_VAL(krk_copyString(stringBytes,stringLength)));
|
||||
formatElements++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user