Bug 860438 - Add assertion back in. r=gabor

This commit is contained in:
Bobby Holley 2013-04-18 11:36:05 -04:00
parent 334259c166
commit 9630812ba7

View File

@ -3196,7 +3196,8 @@ nsCxPusher::Pop()
// pop is the same as it was right after we pushed.
MOZ_ASSERT_IF(mPushedContext, mCompartmentDepthOnEntry ==
js::GetEnterCompartmentDepth(mPushedContext));
DebugOnly<JSContext*> stackTop;
MOZ_ASSERT(NS_SUCCEEDED(stack->Peek(&stackTop)) && mPushedContext == stackTop);
stack->Pop(nullptr);
if (!mScriptIsRunning && mScx) {