diff options
author | Jacek Sieka <arnetheduck@gmail.com> | 2016-10-24 21:10:48 +0800 |
---|---|---|
committer | Jacek Sieka <arnetheduck@gmail.com> | 2016-10-24 21:10:48 +0800 |
commit | 6f7b891bdc27a92e13acb0a648cafdf7431708fe (patch) | |
tree | 3330726ed26d543d3ceac26a18586cfc569b51b3 /compiler/jsgen.nim | |
parent | 8aecacc1dfd10cfbaf30964e2eb78dd672623d31 (diff) | |
download | Nim-6f7b891bdc27a92e13acb0a648cafdf7431708fe.tar.gz |
remove remnants of tyIter
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r-- | compiler/jsgen.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index e7fe8cc27..6b95014f1 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -151,7 +151,7 @@ proc mapType(typ: PType): TJSTypeKind = of tyPointer: # treat a tyPointer like a typed pointer to an array of bytes result = etyBaseIndex - of tyRange, tyDistinct, tyOrdinal, tyConst, tyMutable, tyIter, tyProxy: + of tyRange, tyDistinct, tyOrdinal, tyConst, tyMutable, tyProxy: result = mapType(t.sons[0]) of tyInt..tyInt64, tyUInt..tyUInt64, tyEnum, tyChar: result = etyInt of tyBool: result = etyBool @@ -171,6 +171,7 @@ proc mapType(typ: PType): TJSTypeKind = else: result = etyNone of tyProc: result = etyProc of tyCString: result = etyString + of tyUnused: internalError("mapType") proc mapType(p: PProc; typ: PType): TJSTypeKind = if p.target == targetPHP: result = etyObject |