added a codegen note

This commit is contained in:
Andreas Rumpf
2017-03-29 10:58:01 +02:00
parent 3ffde39cf4
commit 720eca5744

View File

@@ -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"