From 98defd5a568e2e89c3e75a222a4e6c48b9f777d2 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 10 Oct 2013 00:55:54 +0200 Subject: [PATCH] fixes #616 --- compiler/jsgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index fec14870ef..54ee430699 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -1413,7 +1413,7 @@ proc genObjConstr(p: PProc, n: PNode, r: var TCompRes) = var a: TCompRes r.res = toRope("{") r.kind = resExpr - for i in countup(0, sonsLen(n) - 1): + for i in countup(1, sonsLen(n) - 1): if i > 0: app(r.res, ", ") var it = n.sons[i] InternalAssert it.kind == nkExprColonExpr