mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Allow entering a compartment with a pending exception (bug 626267, r=luke).
This commit is contained in:
parent
ec712fc18c
commit
ffad8e83db
@ -348,9 +348,6 @@ AutoCompartment::enter()
|
||||
if (origin != destination) {
|
||||
LeaveTrace(context);
|
||||
|
||||
if (context->isExceptionPending())
|
||||
return false;
|
||||
|
||||
context->compartment = destination;
|
||||
JSObject *scopeChain = target->getGlobal();
|
||||
JS_ASSERT(scopeChain->isNative());
|
||||
@ -360,6 +357,9 @@ AutoCompartment::enter()
|
||||
context->compartment = origin;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (context->isExceptionPending())
|
||||
context->wrapPendingException();
|
||||
}
|
||||
entered = true;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user