Backed out changeset 19b9f064d8eb (bug 795896) because of build bustage

This commit is contained in:
Ehsan Akhgari 2013-01-28 23:51:11 -05:00
parent 00eafdea81
commit 91e8405a19

View File

@ -5848,9 +5848,7 @@ class CGProxyUnwrap(CGAbstractMethod):
def declare(self):
return ""
def definition_body(self):
return """ MOZ_ASSERT(js::IsProxy(obj));
if (js::GetProxyHandler(obj) != DOMProxyHandler::getInstance()) {
MOZ_ASSERT(xpc::WrapperFactory::IsXrayWrapper(obj));
return """ if (xpc::WrapperFactory::IsXrayWrapper(obj)) {
obj = js::UnwrapObject(obj);
}
MOZ_ASSERT(IsProxy(obj));