diff --git a/js/src/xpconnect/src/xpccomponents.cpp b/js/src/xpconnect/src/xpccomponents.cpp index 1ad7f502eb48..9f3be9316e97 100644 --- a/js/src/xpconnect/src/xpccomponents.cpp +++ b/js/src/xpconnect/src/xpccomponents.cpp @@ -1078,7 +1078,7 @@ nsXPCComponents_Exception::HasInstance(nsIXPConnectWrappedNative *wrapper, PRBool *_retval) { if(bp) - *bp = JSValIsInterfaceOfType(cx, val, NS_GET_IID(nsIXPCException)); + *bp = JSValIsInterfaceOfType(cx, val, NS_GET_IID(nsIException)); return NS_OK; } diff --git a/js/src/xpconnect/src/xpcconvert.cpp b/js/src/xpconnect/src/xpcconvert.cpp index 7759f3bf20b1..d331d720bd71 100644 --- a/js/src/xpconnect/src/xpcconvert.cpp +++ b/js/src/xpconnect/src/xpcconvert.cpp @@ -1211,11 +1211,11 @@ XPCConvert::JSValToXPCException(XPCCallContext& ccx, XPCWrappedNative::GetWrappedNativeOfJSObject(cx,obj))) { nsISupports* supports = wrapper->GetIdentityObject(); - nsCOMPtr iface = do_QueryInterface(supports); + nsCOMPtr iface = do_QueryInterface(supports); if(iface) { // just pass through the exception (with extra ref and all) - nsIXPCException* temp = iface; + nsIException* temp = iface; NS_ADDREF(temp); *exceptn = temp; return NS_OK; @@ -1262,11 +1262,11 @@ XPCConvert::JSValToXPCException(XPCCallContext& ccx, nsXPCWrappedJS* jswrapper; nsresult rv = nsXPCWrappedJS::GetNewOrUsed(ccx, obj, - NS_GET_IID(nsIXPCException), + NS_GET_IID(nsIException), nsnull, &jswrapper); if(NS_FAILED(rv)) return rv; - *exceptn = NS_REINTERPRET_CAST(nsIXPCException*, + *exceptn = NS_REINTERPRET_CAST(nsIException*, jswrapper); return NS_OK; }