mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix backout to account for infallible-JSAutoCompartment change on a CLOSED TREE (no bug, r=bustage)
This commit is contained in:
parent
5e47d4412f
commit
63a0cd67e4
@ -331,9 +331,7 @@ WrapperFactory::Rewrap(JSContext *cx, JSObject *obj, JSObject *wrappedProto, JSO
|
|||||||
} else {
|
} else {
|
||||||
bool isSystem;
|
bool isSystem;
|
||||||
{
|
{
|
||||||
JSAutoEnterCompartment ac;
|
JSAutoCompartment ac(cx, obj);
|
||||||
if (!ac.enter(cx, obj))
|
|
||||||
return nullptr;
|
|
||||||
JSObject *globalObj = JS_GetGlobalForObject(cx, obj);
|
JSObject *globalObj = JS_GetGlobalForObject(cx, obj);
|
||||||
JS_ASSERT(globalObj);
|
JS_ASSERT(globalObj);
|
||||||
isSystem = JS_IsSystemObject(cx, globalObj);
|
isSystem = JS_IsSystemObject(cx, globalObj);
|
||||||
|
Loading…
Reference in New Issue
Block a user