summary refs log tree commit diff stats
path: root/compiler/jsgen.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-03-06 21:57:35 +0200
committerZahary Karadjov <zahary@gmail.com>2014-03-06 21:57:35 +0200
commit862c0ef83d7a85798df0474522dd4ba8cfcab674 (patch)
treee617065ce6bd6d72c278d7b22edbc5fcc5d86a58 /compiler/jsgen.nim
parent5324c9ebba1aa21c893db03c1d56d3ce1b42f162 (diff)
downloadNim-862c0ef83d7a85798df0474522dd4ba8cfcab674.tar.gz
split the inline and closure iterators into different symbol kinds for easier discrimination between them
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r--compiler/jsgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index 6e0bd5e44..0cbd4c364 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -1154,7 +1154,7 @@ proc createVar(p: PProc, typ: PType, indirect: bool): PRope =
 
 proc isIndirect(v: PSym): bool = 
   result = (sfAddrTaken in v.flags) and (mapType(v.typ) != etyObject) and
-    v.kind notin {skProc, skConverter, skMethod, skIterator}
+    v.kind notin {skProc, skConverter, skMethod, skIterator, skClosureIterator}
 
 proc genVarInit(p: PProc, v: PSym, n: PNode) = 
   var