mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Push dummy stack frame while wrapping (bug 626280, r=jst).
This commit is contained in:
parent
c0116d8e89
commit
fe9eb28c86
@ -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