diff options
author | Jacek Sieka <arnetheduck@gmail.com> | 2016-10-24 23:19:46 +0800 |
---|---|---|
committer | Jacek Sieka <arnetheduck@gmail.com> | 2016-10-24 23:19:46 +0800 |
commit | b3de34548d5d518e3f4f14ae4fdf220578d68ec1 (patch) | |
tree | e804bd9a144334893bc7886fc465d68c68cd6690 /compiler/jsgen.nim | |
parent | f488ed973d5eff91f555182f8d2be664085a0dc8 (diff) | |
download | Nim-b3de34548d5d518e3f4f14ae4fdf220578d68ec1.tar.gz |
clean up tyConst remnants
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r-- | compiler/jsgen.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index ed6f54ae3..ac1a79f2e 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, tyProxy: + of tyRange, tyDistinct, tyOrdinal, tyMutable, tyProxy: result = mapType(t.sons[0]) of tyInt..tyInt64, tyUInt..tyUInt64, tyEnum, tyChar: result = etyInt of tyBool: result = etyBool @@ -170,7 +170,7 @@ proc mapType(typ: PType): TJSTypeKind = else: result = etyNone of tyProc: result = etyProc of tyCString: result = etyString - of tyUnused, tyUnused0: internalError("mapType") + of tyUnused, tyUnused0, tyUnused1: internalError("mapType") proc mapType(p: PProc; typ: PType): TJSTypeKind = if p.target == targetPHP: result = etyObject |