Bug 1242462 - Add a newline when calling TypeSet::print from a debugger. r=jandem

This commit is contained in:
Nicolas B. Pierron 2016-02-29 13:20:37 +00:00
parent 846f654fed
commit 010ddafa03

View File

@ -680,6 +680,7 @@ ConstraintTypeSet::addType(ExclusiveContext* cxArg, Type type)
void
TypeSet::print(FILE* fp)
{
bool fromDebugger = !fp;
if (!fp)
fp = stderr;
@ -730,6 +731,9 @@ TypeSet::print(FILE* fp)
fprintf(fp, " %s", TypeString(ObjectType(key)));
}
}
if (fromDebugger)
fprintf(fp, "\n");
}
/* static */ void