fixes a strange JS codegen bug
This commit is contained in:
parent
b668c5e2aa
commit
c9ce38e56d
1 changed files with 2 additions and 0 deletions
|
|
@ -1049,6 +1049,8 @@ proc genAddr(p: PProc, n: PNode, r: var TCompRes) =
|
||||||
else: internalError(n.sons[0].info, "expr(nkBracketExpr, " & $kindOfIndexedExpr & ')')
|
else: internalError(n.sons[0].info, "expr(nkBracketExpr, " & $kindOfIndexedExpr & ')')
|
||||||
of nkObjDownConv:
|
of nkObjDownConv:
|
||||||
gen(p, n.sons[0], r)
|
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)
|
else: internalError(n.sons[0].info, "genAddr: " & $n.sons[0].kind)
|
||||||
|
|
||||||
proc thisParam(p: PProc; typ: PType): PType =
|
proc thisParam(p: PProc; typ: PType): PType =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue