Bug 1101416 - Don't assert against pending exceptions in AutoNoJSAPI. r=luke,r=smaug

This commit is contained in:
Bobby Holley 2014-12-17 16:34:37 -08:00
parent 235b9c9cff
commit 8f2c6e545a

View File

@ -569,8 +569,6 @@ AutoIncumbentScript::AutoIncumbentScript(nsIGlobalObject* aGlobalObject)
AutoNoJSAPI::AutoNoJSAPI(bool aIsMainThread)
: ScriptSettingsStackEntry()
{
MOZ_ASSERT_IF(nsContentUtils::GetCurrentJSContextForThread(),
!JS_IsExceptionPending(nsContentUtils::GetCurrentJSContextForThread()));
if (aIsMainThread) {
mCxPusher.emplace(static_cast<JSContext*>(nullptr),
/* aAllowNull = */ true);