diff options
author | Yuriy Glukhov <yglukhov@users.noreply.github.com> | 2017-01-18 21:13:08 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-01-18 20:13:08 +0100 |
commit | 05dec08cead56a08a8bf2f25fb695340cd321070 (patch) | |
tree | a282541f64b2448c0afdd4d058cb6a5d1893f836 /compiler | |
parent | bde768cb091bcba57c07cf6d73080fca8c2c36f9 (diff) | |
download | Nim-05dec08cead56a08a8bf2f25fb695340cd321070.tar.gz |
Fixes #5244 (#5245)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/jsgen.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index 70398a241..f802a7263 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -1173,6 +1173,7 @@ proc genDeref(p: PProc, n: PNode, r: var TCompRes) = else: var a: TCompRes gen(p, n.sons[0], a) + r.kind = resExpr if a.typ == etyBaseIndex: r.res = "$1[$2]" % [a.address, a.res] elif n.sons[0].kind == nkCall: |