fixes the JS regression

This commit is contained in:
araq
2026-03-09 15:21:28 +01:00
parent 58ae50b7d6
commit 2ceb7006f7

View File

@@ -1774,6 +1774,9 @@ when not defined(js):
let s = cast[NimString](result)
s.len = len
s.data[len] = '\0'
else:
proc newStringUninit*(len: Natural): string {.
magic: "NewString", importc: "mnewString", noSideEffect.}
{.pop.}