mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 20:04:18 +00:00
Make newStringUninit available on the js backend [backport] (#22743)
This commit is contained in:
committed by
GitHub
parent
c0838826c0
commit
b10a809274
@@ -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.}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user