зеркало из https://github.com/mozilla/pjs.git
global object no longer has an unused constructor.
This commit is contained in:
Родитель
e2135cd12d
Коммит
b9b49ebfe5
|
@ -2703,18 +2703,6 @@ static JSFunctionSpec WindowMethods[] =
|
|||
};
|
||||
|
||||
|
||||
#if 0
|
||||
//
|
||||
// Window constructor
|
||||
//
|
||||
PR_STATIC_CALLBACK(JSBool)
|
||||
Window(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
{
|
||||
return JS_FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// Window class initialization
|
||||
//
|
||||
|
|
|
@ -1574,7 +1574,7 @@ JSStubGen::GenerateConstructor(IdlSpecification &aSpec)
|
|||
JSGEN_GENERATE_CONSTRUCTOR(buf, name, caps_name);
|
||||
*file << buf;
|
||||
}
|
||||
else {
|
||||
else if (!mIsGlobal) {
|
||||
JSGEN_GENERATE_EMPTYCONSTRUCTOR(buf, name);
|
||||
*file << buf;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче