bug 100665 - Maybe xpconnect should not init the XPCOutArg JSClass. r=jband, sr=shaver

This commit is contained in:
dbradley%netscape.com 2001-10-03 02:57:42 +00:00
Родитель 9bb2766908
Коммит aa050fb3a4
3 изменённых файлов: 1 добавлений и 21 удалений

Просмотреть файл

@ -361,9 +361,6 @@ nsXPConnect::InitClasses(JSContext * aJSContext, JSObject * aGlobalJSObj)
if(!xpc_InitWrappedNativeJSOps())
return UnexpectedFailure(NS_ERROR_FAILURE);
if(!nsXPCWrappedJSClass::InitClasses(ccx, aGlobalJSObj))
return UnexpectedFailure(NS_ERROR_FAILURE);
XPCWrappedNativeScope* scope =
XPCWrappedNativeScope::GetNewOrUsed(ccx, aGlobalJSObj);

Просмотреть файл

@ -1921,7 +1921,6 @@ public:
nsIInterfaceInfo* GetInterfaceInfo() const {return mInfo;}
const char* GetInterfaceName();
static JSBool InitClasses(XPCCallContext& ccx, JSObject* aGlobalJSObj);
static JSBool IsWrappedJS(nsISupports* aPtr);
NS_IMETHOD DelegatedQueryInterface(nsXPCWrappedJS* self, REFNSIID aIID,

Просмотреть файл

@ -1431,22 +1431,6 @@ done:
return retval;
}
static JSClass WrappedJSOutArg_class = {
"XPCOutArg", 0,
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
};
// static
JSBool
nsXPCWrappedJSClass::InitClasses(XPCCallContext& ccx, JSObject* aGlobalJSObj)
{
if(!JS_InitClass(ccx, aGlobalJSObj,
0, &WrappedJSOutArg_class, 0, 0, 0, 0, 0, 0))
return JS_FALSE;
return JS_TRUE;
}
const char*
nsXPCWrappedJSClass::GetInterfaceName()
{
@ -1458,7 +1442,7 @@ nsXPCWrappedJSClass::GetInterfaceName()
JSObject*
nsXPCWrappedJSClass::NewOutObject(JSContext* cx)
{
return JS_NewObject(cx, &WrappedJSOutArg_class, nsnull, nsnull);
return JS_NewObject(cx, nsnull, nsnull, nsnull);
}