mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 939475 - Mention markStackLimit in gcparam() help and error. r=luke
This commit is contained in:
parent
392ec61d0e
commit
6d515b1edf
@ -268,6 +268,9 @@ static const struct ParamPair {
|
||||
{"markStackLimit", JSGC_MARK_STACK_LIMIT}
|
||||
};
|
||||
|
||||
// Keep this in sync with above params.
|
||||
#define GC_PARAMETER_ARGS_LIST "maxBytes, maxMallocBytes, gcBytes, gcNumber, sliceTimeBudget, or markStackLimit"
|
||||
|
||||
static bool
|
||||
GCParameter(JSContext *cx, unsigned argc, Value *vp)
|
||||
{
|
||||
@ -285,9 +288,7 @@ GCParameter(JSContext *cx, unsigned argc, Value *vp)
|
||||
for (;; paramIndex++) {
|
||||
if (paramIndex == ArrayLength(paramMap)) {
|
||||
JS_ReportError(cx,
|
||||
"the first argument must be maxBytes, "
|
||||
"maxMallocBytes, gcStackpoolLifespan, gcBytes or "
|
||||
"gcNumber");
|
||||
"the first argument must be one of " GC_PARAMETER_ARGS_LIST);
|
||||
return false;
|
||||
}
|
||||
if (JS_FlatStringEqualsAscii(flatStr, paramMap[paramIndex].name))
|
||||
@ -1368,8 +1369,7 @@ static const JSFunctionSpecWithHelp TestingFunctions[] = {
|
||||
|
||||
JS_FN_HELP("gcparam", GCParameter, 2, 0,
|
||||
"gcparam(name [, value])",
|
||||
" Wrapper for JS_[GS]etGCParameter. The name is either maxBytes,\n"
|
||||
" maxMallocBytes, gcBytes, gcNumber, or sliceTimeBudget."),
|
||||
" Wrapper for JS_[GS]etGCParameter. The name is one of " GC_PARAMETER_ARGS_LIST),
|
||||
|
||||
JS_FN_HELP("getBuildConfiguration", GetBuildConfiguration, 0, 0,
|
||||
"getBuildConfiguration()",
|
||||
|
Loading…
Reference in New Issue
Block a user