summary refs log tree commit diff stats
path: root/compiler/jsgen.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r--compiler/jsgen.nim4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index c4ee36dbf..6aacf818a 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -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: