Bug 822858 - Fix printing of lazy protos in type inference spew. r=bhackett

This commit is contained in:
Bill McCloskey 2013-01-08 16:49:28 -08:00
parent 66fa2040ba
commit 9fcfd843c0

View File

@ -3603,9 +3603,11 @@ TypeObject::clearNewScript(JSContext *cx)
void
TypeObject::print()
{
TaggedProto tagged(proto);
printf("%s : %s",
TypeObjectString(this),
proto ? TypeString(Type::ObjectType(proto)) : "(null)");
tagged.isObject() ? TypeString(Type::ObjectType(proto))
: (tagged.isLazy() ? "(lazy)" : "(null)"));
if (unknownProperties()) {
printf(" unknown");