Permalink
Browse files

Fixed an error where `TypeTags.OfType` was missing `BoxedValue` as a …

…tag to map.

This was causing a ton of issues in the compilation.
  • Loading branch information...
1 parent b1ef366 commit 9ee0cb710e69fe0489f11c9f101d145f59decf4f @otac0n otac0n committed Jul 8, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 Src/IronJS.Runtime/TypeTags.cs
@@ -59,6 +59,7 @@ static TypeTag()
map.Add(typeof(BooleanObject), TypeTags.Object);
map.Add(typeof(RegExpObject), TypeTags.Object);
map.Add(typeof(DateObject), TypeTags.Object);
+ map.Add(typeof(BoxedValue), TypeTags.Box);
}
public static uint OfType(Type type)
@@ -70,8 +71,8 @@ public static uint OfType(Type type)
return tag;
}
- return type.IsSubclassOf(typeof(CommonObject))
- ? TypeTags.Object
+ return type.IsSubclassOf(typeof(CommonObject))
+ ? TypeTags.Object
: TypeTags.Clr;
}

0 comments on commit 9ee0cb7

Please sign in to comment.