summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-11 11:11:21 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-07-11 23:19:24 +0200
commitc9ce38e56dba0f0c37a4193311e1120ba2d12c0e (patch)
tree0c24952709c439d3081709a2543507d34cb3662f
parentb668c5e2aaf8db3f646bab0b20239fcb0529dac3 (diff)
downloadNim-c9ce38e56dba0f0c37a4193311e1120ba2d12c0e.tar.gz
fixes a strange JS codegen bug
-rw-r--r--compiler/jsgen.nim2
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 =