JSObject *other = JSVAL_TO_OBJECT(v);
XPCWrappedNative *wrappedNative = XPCNativeWrapper::GetWrappedNative(cx, obj);
XPC_NW_Equality(JSContext *cx, JSObject *obj, jsval v, JSBool *bp){  NS_ASSERTION(XPCNativeWrapper::IsNativeWrapper(cx, obj),               "Uh, we should only ever be called for XPCNativeWrapper "               "objects!");  if (JSVAL_IS_PRIMITIVE(v)) {    *bp = JS_FALSE;    return JS_TRUE;  }  JSObject *other = JSVAL_TO_OBJECT(v);  *bp = (obj == other ||         GetIdentityObject(cx, obj) == GetIdentityObject(cx, other));  return JS_TRUE;}