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 c0116d8e89
commit fe9eb28c86

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;