diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-10-10 21:03:18 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-10 21:03:18 +0200 |
commit | 0ead36dae6ab0d4525d2318d19335147ffa0bd3d (patch) | |
tree | f5aae1163acc3da37ac0341c6e2fd8bc013de259 /compiler/jsgen.nim | |
parent | 0803b532f44fc7b0039e31187af76e36828ca89d (diff) | |
download | Nim-0ead36dae6ab0d4525d2318d19335147ffa0bd3d.tar.gz |
Unchecked arrays now have their own type (#9267)
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 1be8629b9..7b30a0009 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -179,7 +179,7 @@ proc mapType(typ: PType): TJSTypeKind = of tyFloat..tyFloat128: result = etyFloat of tySet: result = etyObject # map a set to a table of tyString, tySequence, tyOpt: result = etySeq - of tyObject, tyArray, tyTuple, tyOpenArray, tyVarargs: + of tyObject, tyArray, tyTuple, tyOpenArray, tyVarargs, tyUncheckedArray: result = etyObject of tyNil: result = etyNull of tyGenericParam, tyGenericBody, tyGenericInvocation, @@ -195,7 +195,7 @@ proc mapType(typ: PType): TJSTypeKind = else: result = etyNone of tyProc: result = etyProc of tyCString: result = etyString - of tyUnused, tyOptAsRef: doAssert(false, "mapType") + of tyOptAsRef: doAssert(false, "mapType") proc mapType(p: PProc; typ: PType): TJSTypeKind = result = mapType(typ) |