mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1101416 - Don't assert against pending exceptions in AutoNoJSAPI. r=luke,r=smaug
This commit is contained in:
parent
235b9c9cff
commit
8f2c6e545a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user