From 720eca574464ba96d7c93548d6a1e365d919365f Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 29 Mar 2017 10:58:01 +0200 Subject: added a codegen note --- compiler/jsgen.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler') 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" -- cgit 1.4.1-2-gfad0