diff options
-rw-r--r-- | compiler/jsgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index fec14870e..54ee43069 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 |