@@ -667,7 +667,7 @@ QueryInterface(JSContext* cx, unsigned argc, JS::Value* vp)
667667 // Get the object. It might be a security wrapper, in which case we do a checked
668668 // unwrap.
669669 JSObject* origObj = JSVAL_TO_OBJECT (thisv);
670- JSObject* obj = js::CheckedUnwrap (origObj);
670+ JSObject* obj = js::UnwrapObjectChecked (origObj);
671671 if (!obj) {
672672 JS_ReportError (cx, " Permission denied to access object" );
673673 return false ;
@@ -1245,7 +1245,7 @@ HasPropertyOnPrototype(JSContext* cx, JSObject* proxy, DOMProxyHandler* handler,
12451245{
12461246 Maybe<JSAutoCompartment> ac;
12471247 if (xpc::WrapperFactory::IsXrayWrapper (proxy)) {
1248- proxy = js::UncheckedUnwrap (proxy);
1248+ proxy = js::UnwrapObject (proxy);
12491249 ac.construct (cx, proxy);
12501250 }
12511251 MOZ_ASSERT (js::IsProxy (proxy) && js::GetProxyHandler (proxy) == handler);
@@ -1587,7 +1587,7 @@ GetGlobalObject(JSContext* aCx, JSObject* aObject,
15871587 Maybe<JSAutoCompartment>& aAutoCompartment)
15881588{
15891589 if (js::IsWrapper (aObject)) {
1590- aObject = js::CheckedUnwrap (aObject, /* stopAtOuter = */ false );
1590+ aObject = js::UnwrapObjectChecked (aObject, /* stopAtOuter = */ false );
15911591 if (!aObject) {
15921592 Throw<mainThread>(aCx, NS_ERROR_XPC_SECURITY_MANAGER_VETO );
15931593 return nullptr ;
@@ -1636,7 +1636,7 @@ InterfaceHasInstance(JSContext* cx, JSHandleObject obj, JSObject* instance,
16361636 const DOMIfaceAndProtoJSClass* clasp =
16371637 DOMIfaceAndProtoJSClass::FromJSClass (js::GetObjectClass (obj));
16381638
1639- const DOMClass* domClass = GetDOMClass (js::UncheckedUnwrap (instance));
1639+ const DOMClass* domClass = GetDOMClass (js::UnwrapObject (instance));
16401640
16411641 MOZ_ASSERT (!domClass || clasp->mPrototypeID != prototypes::id::_ID_Count,
16421642 " Why do we have a hasInstance hook if we don't have a prototype "
0 commit comments