diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-11 11:11:21 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-07-11 23:19:24 +0200 |
commit | c9ce38e56dba0f0c37a4193311e1120ba2d12c0e (patch) | |
tree | 0c24952709c439d3081709a2543507d34cb3662f | |
parent | b668c5e2aaf8db3f646bab0b20239fcb0529dac3 (diff) | |
download | Nim-c9ce38e56dba0f0c37a4193311e1120ba2d12c0e.tar.gz |
fixes a strange JS codegen bug
-rw-r--r-- | compiler/jsgen.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index 744e190cd..0ac779822 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -1049,6 +1049,8 @@ proc genAddr(p: PProc, n: PNode, r: var TCompRes) = else: internalError(n.sons[0].info, "expr(nkBracketExpr, " & $kindOfIndexedExpr & ')') of nkObjDownConv: gen(p, n.sons[0], r) + of nkHiddenDeref: + gen(p, n.sons[0].sons[0], r) else: internalError(n.sons[0].info, "genAddr: " & $n.sons[0].kind) proc thisParam(p: PProc; typ: PType): PType = |