[backport:1.4] JS cstring null fixes (#16979)
* [backport:1.4] JS cstring null fixes * fix JS move string * make it look cleaner
This commit is contained in:
parent
f3c39bf2d9
commit
81533a0014
5 changed files with 69 additions and 8 deletions
|
|
@ -645,7 +645,7 @@ proc genericReset(x: JSRef, ti: PNimType): JSRef {.compilerproc.} =
|
|||
asm "`result` = {m_type: `ti`};"
|
||||
else:
|
||||
asm "`result` = {};"
|
||||
of tySequence, tyOpenArray:
|
||||
of tySequence, tyOpenArray, tyString:
|
||||
asm """
|
||||
`result` = [];
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue