Merge pull request #2322 from def-/js-typeinfo

Typeinfo for uints in javascript
This commit is contained in:
Andreas Rumpf
2015-03-12 16:17:58 +01:00

View File

@@ -123,7 +123,7 @@ proc genTypeInfo(p: PProc, typ: PType): PRope =
case t.kind
of tyDistinct:
result = genTypeInfo(p, typ.sons[0])
of tyPointer, tyProc, tyBool, tyChar, tyCString, tyString, tyInt..tyFloat128:
of tyPointer, tyProc, tyBool, tyChar, tyCString, tyString, tyInt..tyUInt64:
var s = ropef(
"var $1 = {size: 0,kind: $2,base: null,node: null,finalizer: null};$n",
[result, toRope(ord(t.kind))])