mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Push dummy stack frame while wrapping (bug 626280, r=jst).
This commit is contained in:
parent
b12d9b4edc
commit
f0d6ca57be
@ -101,7 +101,9 @@ WrapperFactory::WaiveXray(JSContext *cx, JSObject *obj)
|
||||
if (proto && !(proto = WaiveXray(cx, proto)))
|
||||
return nsnull;
|
||||
|
||||
js::SwitchToCompartment sc(cx, obj->compartment());
|
||||
JSAutoEnterCompartment ac;
|
||||
if (!ac.enter(cx, obj))
|
||||
return nsnull;
|
||||
wobj = JSWrapper::New(cx, obj, proto, obj->getGlobal(), &WaiveXrayWrapperWrapper);
|
||||
if (!wobj)
|
||||
return nsnull;
|
||||
|
Loading…
Reference in New Issue
Block a user