Make newStringUninit available on the js backend [backport] (#22743)

This commit is contained in:
Amjad Ben Hedhili
2023-09-23 10:39:11 +01:00
committed by GitHub
parent c0838826c0
commit b10a809274

View File

@@ -1643,6 +1643,9 @@ when not defined(js):
else:
var s = cast[PGenericSeq](result)
s.len = len
else:
proc newStringUninit*(len: Natural): string {.
magic: "NewString", importc: "mnewString", noSideEffect.}
{.pop.}