src/TypeManager.cpp
changeset 143 393f1b8ac8c3
parent 142 a000bafece09
child 145 e9d804821c48
     1.1 --- a/src/TypeManager.cpp	Mon Jul 30 12:13:22 2012 -0700
     1.2 +++ b/src/TypeManager.cpp	Mon Jul 30 22:24:57 2012 -0700
     1.3 @@ -47,6 +47,10 @@
     1.4      if (!stringTag)
     1.5          return false;
     1.6  
     1.7 +    Local<String> boolTag(zone_, zone_->makeSymbol("bool"));
     1.8 +    if (!boolTag)
     1.9 +        return false;
    1.10 +
    1.11      Local<String> nullTag(zone_);
    1.12  
    1.13      if ((primitiveTypes_[PrimitiveType_Int32] = Type::NewPrimitive(zone_, nullTag)) == NULL)
    1.14 @@ -57,6 +61,8 @@
    1.15          return false;
    1.16      if ((primitiveTypes_[PrimitiveType_Char] = Type::NewPrimitive(zone_, stringTag)) == NULL)
    1.17          return false;
    1.18 +    if ((primitiveTypes_[PrimitiveType_Bool] = Type::NewPrimitive(zone_, boolTag)) == NULL)
    1.19 +        return false;
    1.20  
    1.21      Local<Type> type(zone_);
    1.22      for (unsigned i = 0; i < PrimitiveTypes_Total; i++) {