Backed out changeset 182986e4ab10 (bug 1009603)

This commit is contained in:
Ed Morley 2014-06-09 13:17:46 +01:00
parent ad3cab0f4a
commit c2899b2985

View File

@ -328,7 +328,7 @@ TraceLogger::~TraceLogger()
// We temporary enable logging for this. Stop doesn't need any extra data,
// so is safe to do, even when we encountered OOM.
enabled = true;
while (stack.currentId() > 0)
while (stack.size() > 0)
stopEvent();
enabled = false;
}
@ -707,7 +707,6 @@ TraceLogger::stopEvent()
return;
}
}
JS_ASSERT(stack.currentId() > 0);
stack.pop();
}