@@ -671,7 +671,7 @@ QueryInterface(JSContext* cx, unsigned argc, JS::Value* vp)
671671 // Get the object. It might be a security wrapper, in which case we do a checked
672672 // unwrap.
673673 JSObject* origObj = JSVAL_TO_OBJECT (thisv);
674- JSObject* obj = js::UnwrapObjectChecked (origObj);
674+ JSObject* obj = js::CheckedUnwrap (origObj);
675675 if (!obj) {
676676 JS_ReportError (cx, " Permission denied to access object" );
677677 return false ;
@@ -1249,7 +1249,7 @@ HasPropertyOnPrototype(JSContext* cx, JSObject* proxy, DOMProxyHandler* handler,
12491249{
12501250 Maybe<JSAutoCompartment> ac;
12511251 if (xpc::WrapperFactory::IsXrayWrapper (proxy)) {
1252- proxy = js::UnwrapObject (proxy);
1252+ proxy = js::UncheckedUnwrap (proxy);
12531253 ac.construct (cx, proxy);
12541254 }
12551255 MOZ_ASSERT (js::IsProxy (proxy) && js::GetProxyHandler (proxy) == handler);
@@ -1592,7 +1592,7 @@ GetGlobalObject(JSContext* aCx, JSObject* aObject,
15921592 Maybe<JSAutoCompartment>& aAutoCompartment)
15931593{
15941594 if (js::IsWrapper (aObject)) {
1595- aObject = js::UnwrapObjectChecked (aObject, /* stopAtOuter = */ false );
1595+ aObject = js::CheckedUnwrap (aObject, /* stopAtOuter = */ false );
15961596 if (!aObject) {
15971597 Throw<mainThread>(aCx, NS_ERROR_XPC_SECURITY_MANAGER_VETO );
15981598 return nullptr ;
@@ -1641,7 +1641,7 @@ InterfaceHasInstance(JSContext* cx, JSHandleObject obj, JSObject* instance,
16411641 const DOMIfaceAndProtoJSClass* clasp =
16421642 DOMIfaceAndProtoJSClass::FromJSClass (js::GetObjectClass (obj));
16431643
1644- const DOMClass* domClass = GetDOMClass (js::UnwrapObject (instance));
1644+ const DOMClass* domClass = GetDOMClass (js::UncheckedUnwrap (instance));
16451645
16461646 MOZ_ASSERT (!domClass || clasp->mPrototypeID != prototypes::id::_ID_Count,
16471647 " Why do we have a hasInstance hook if we don't have a prototype "
0 commit comments