зеркало из https://github.com/mozilla/gecko-dev.git
backout of shavers checkin as it breaks windows build and dbradley thinks that Quit took a parameter that was to be the return value of XPCShell?
This commit is contained in:
Родитель
bd3f0080d6
Коммит
f0f7103d21
|
@ -352,17 +352,6 @@ Clear(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
JS_STATIC_DLL_CALLBACK(JSBool)
|
|
||||||
SetExitCode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
|
|
||||||
jsval *rval)
|
|
||||||
{
|
|
||||||
if (argc == 0) {
|
|
||||||
gExitCode = 0;
|
|
||||||
return PR_TRUE;
|
|
||||||
}
|
|
||||||
return JS_ValueToECMAInt32(cx, argv[0], &gExitCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
static JSFunctionSpec glob_functions[] = {
|
static JSFunctionSpec glob_functions[] = {
|
||||||
{"print", Print, 0},
|
{"print", Print, 0},
|
||||||
{"load", Load, 1},
|
{"load", Load, 1},
|
||||||
|
@ -373,7 +362,6 @@ static JSFunctionSpec glob_functions[] = {
|
||||||
{"dump", Dump, 1},
|
{"dump", Dump, 1},
|
||||||
{"gc", GC, 0},
|
{"gc", GC, 0},
|
||||||
{"clear", Clear, 1},
|
{"clear", Clear, 1},
|
||||||
{"setExitCode", SetExitCode, 1},
|
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче