* fix #14350, cstrings in JS init as null
This commit is contained in:
parent
278b4582f5
commit
80c360fceb
4 changed files with 11 additions and 6 deletions
|
|
@ -1690,9 +1690,7 @@ proc createVar(p: PProc, typ: PType, indirect: bool): Rope =
|
|||
result = putToSeq("null", indirect)
|
||||
of tySequence, tyString:
|
||||
result = putToSeq("[]", indirect)
|
||||
of tyCString:
|
||||
result = putToSeq("\"\"", indirect)
|
||||
of tyOpt, tyProc:
|
||||
of tyCString, tyOpt, tyProc:
|
||||
result = putToSeq("null", indirect)
|
||||
of tyStatic:
|
||||
if t.n != nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue