diff options
author | Oleh Prypin <blaxpirit@gmail.com> | 2015-04-09 03:36:53 +0300 |
---|---|---|
committer | Oleh Prypin <blaxpirit@gmail.com> | 2015-04-09 04:21:55 +0300 |
commit | 1d7fc5fcdaa0e16ac6583709248ba4635129807b (patch) | |
tree | 6a1db6b67c64baf11027e8bb03963677f72661cc /compiler | |
parent | 57250ad2819a14ccbe325f33d6afcd06dd18ea35 (diff) | |
download | Nim-1d7fc5fcdaa0e16ac6583709248ba4635129807b.tar.gz |
Don't add a comma too soon
Fixes #2495
Diffstat (limited to 'compiler')
-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 382fe49df..6c667a3a7 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -791,10 +791,10 @@ proc genIf(p: PProc, n: PNode, r: var TCompRes) = proc generateHeader(p: PProc, typ: PType): Rope = result = nil for i in countup(1, sonsLen(typ.n) - 1): - if result != nil: add(result, ", ") assert(typ.n.sons[i].kind == nkSym) var param = typ.n.sons[i].sym if isCompileTimeOnly(param.typ): continue + if result != nil: add(result, ", ") var name = mangleName(param) add(result, name) if mapType(param.typ) == etyBaseIndex: |