summary refs log tree commit diff stats
path: root/compiler/jsgen.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-12-08 22:35:21 +0100
committerAraq <rumpf_a@web.de>2014-12-08 22:35:21 +0100
commit5979d35ab2052b467e89ade90a7b3a47a50e2a28 (patch)
treef2947f60a410ec0281d3a2fb882eaff7ecc5a56f /compiler/jsgen.nim
parent0151d1171636f84999d0ac6cde314e4d7084b3a3 (diff)
parent5ee745888398eae686545235a15d125ef563cd3d (diff)
downloadNim-5979d35ab2052b467e89ade90a7b3a47a50e2a28.tar.gz
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r--compiler/jsgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index 108c0fe10..2ae85d5cf 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -1431,7 +1431,7 @@ proc genObjConstr(p: PProc, n: PNode, r: var TCompRes) =
   r.res = toRope("{")
   r.kind = resExpr
   for i in countup(1, sonsLen(n) - 1):
-    if i > 0: app(r.res, ", ")
+    if i > 1: app(r.res, ", ")
     var it = n.sons[i]
     internalAssert it.kind == nkExprColonExpr
     gen(p, it.sons[1], a)