From f7f9265399433f0e19c0d9398163de4462908b22 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 20 Apr 2015 22:53:46 +0200 Subject: [PATCH] attempt to fix JS codegen regression --- compiler/jsgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index 2212be51f..c3f01774e 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -941,7 +941,7 @@ proc genArrayAccess(p: PProc, n: PNode, r: var TCompRes) = proc isIndirect(v: PSym): bool = result = {sfAddrTaken, sfGlobal} * v.flags != {} and #(mapType(v.typ) != etyObject) and - sfVolatile notin v.flags and + {sfImportc, sfVolatile, sfExportc} * v.flags == {} and v.kind notin {skProc, skConverter, skMethod, skIterator, skClosureIterator} proc genAddr(p: PProc, n: PNode, r: var TCompRes) =