Push dummy stack frame while wrapping (bug 626280, r=jst).

This commit is contained in:
Andreas Gal 2011-01-18 12:51:56 -08:00
parent b12d9b4edc
commit f0d6ca57be

View File

@ -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;