fixes a strange JS codegen bug

This commit is contained in:
Andreas Rumpf
2016-07-11 11:11:21 +02:00
parent b668c5e2aa
commit c9ce38e56d

View File

@@ -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 =