summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-03-29 10:58:01 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-03-29 10:58:01 +0200
commit720eca574464ba96d7c93548d6a1e365d919365f (patch)
tree4244445744ba2ed2f41d375c30d9f3f105065e30 /compiler
parent3ffde39cf416579144d37021f24c99e49efc0aee (diff)
downloadNim-720eca574464ba96d7c93548d6a1e365d919365f.tar.gz
added a codegen note
Diffstat (limited to 'compiler')
-rw-r--r--compiler/jsgen.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index f5e8027b3..9c50a4fc9 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -1391,6 +1391,7 @@ proc createObjInitList(p: PProc, typ: PType, excludedFieldIDs: IntSet, output: v
     t = t.sons[0]
 
 proc arrayTypeForElemType(typ: PType): string =
+  # XXX This should also support tyEnum and tyBool
   case typ.kind
   of tyInt, tyInt32: "Int32Array"
   of tyInt16: "Int16Array"