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
424ea88da6
commit
c3caa3a90c
@ -331,9 +331,7 @@ WrapperFactory::Rewrap(JSContext *cx, JSObject *obj, JSObject *wrappedProto, JSO
|
||||
} else {
|
||||
bool isSystem;
|
||||
{
|
||||
JSAutoEnterCompartment ac;
|
||||
if (!ac.enter(cx, obj))
|
||||
return nullptr;
|
||||
JSAutoCompartment ac(cx, obj);
|
||||
JSObject *globalObj = JS_GetGlobalForObject(cx, obj);
|
||||
JS_ASSERT(globalObj);
|
||||
isSystem = JS_IsSystemObject(cx, globalObj);
|
||||
|
Loading…
Reference in New Issue
Block a user