зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1289050 - Part 8.3: Remove unused parameter from JSMSG_JSON_CYCLIC_VALUE. r=jwalden
This commit is contained in:
Родитель
288dbb9ff7
Коммит
9e25fd11a6
|
@ -107,7 +107,7 @@ MSG_DEF(JSMSG_BAD_DERIVED_RETURN, 1, JSEXN_TYPEERR, "derived class construc
|
||||||
|
|
||||||
// JSON
|
// JSON
|
||||||
MSG_DEF(JSMSG_JSON_BAD_PARSE, 3, JSEXN_SYNTAXERR, "JSON.parse: {0} at line {1} column {2} of the JSON data")
|
MSG_DEF(JSMSG_JSON_BAD_PARSE, 3, JSEXN_SYNTAXERR, "JSON.parse: {0} at line {1} column {2} of the JSON data")
|
||||||
MSG_DEF(JSMSG_JSON_CYCLIC_VALUE, 1, JSEXN_TYPEERR, "cyclic {0} value")
|
MSG_DEF(JSMSG_JSON_CYCLIC_VALUE, 0, JSEXN_TYPEERR, "cyclic object value")
|
||||||
|
|
||||||
// Runtime errors
|
// Runtime errors
|
||||||
MSG_DEF(JSMSG_BAD_INSTANCEOF_RHS, 1, JSEXN_TYPEERR, "invalid 'instanceof' operand {0}")
|
MSG_DEF(JSMSG_BAD_INSTANCEOF_RHS, 1, JSEXN_TYPEERR, "invalid 'instanceof' operand {0}")
|
||||||
|
|
|
@ -309,8 +309,7 @@ class CycleDetector
|
||||||
bool foundCycle(JSContext* cx) {
|
bool foundCycle(JSContext* cx) {
|
||||||
auto addPtr = stack.lookupForAdd(obj_);
|
auto addPtr = stack.lookupForAdd(obj_);
|
||||||
if (addPtr) {
|
if (addPtr) {
|
||||||
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_JSON_CYCLIC_VALUE,
|
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr, JSMSG_JSON_CYCLIC_VALUE);
|
||||||
js_object_str);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!stack.add(addPtr, obj_)) {
|
if (!stack.add(addPtr, obj_)) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче