зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1498252 - Remove bogus newlines from ContextChecks crash messages. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D8393 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
25e58a63c5
Коммит
d31371e0f4
|
@ -45,15 +45,15 @@ class ContextChecks
|
||||||
* realm/compartment/zone mismatches.
|
* realm/compartment/zone mismatches.
|
||||||
*/
|
*/
|
||||||
static void fail(JS::Realm* r1, JS::Realm* r2, int argIndex) {
|
static void fail(JS::Realm* r1, JS::Realm* r2, int argIndex) {
|
||||||
MOZ_CRASH_UNSAFE_PRINTF("*** Realm mismatch %p vs. %p at argument %d\n",
|
MOZ_CRASH_UNSAFE_PRINTF("*** Realm mismatch %p vs. %p at argument %d",
|
||||||
r1, r2, argIndex);
|
r1, r2, argIndex);
|
||||||
}
|
}
|
||||||
static void fail(JS::Compartment* c1, JS::Compartment* c2, int argIndex) {
|
static void fail(JS::Compartment* c1, JS::Compartment* c2, int argIndex) {
|
||||||
MOZ_CRASH_UNSAFE_PRINTF("*** Compartment mismatch %p vs. %p at argument %d\n",
|
MOZ_CRASH_UNSAFE_PRINTF("*** Compartment mismatch %p vs. %p at argument %d",
|
||||||
c1, c2, argIndex);
|
c1, c2, argIndex);
|
||||||
}
|
}
|
||||||
static void fail(JS::Zone* z1, JS::Zone* z2, int argIndex) {
|
static void fail(JS::Zone* z1, JS::Zone* z2, int argIndex) {
|
||||||
MOZ_CRASH_UNSAFE_PRINTF("*** Zone mismatch %p vs. %p at argument %d\n",
|
MOZ_CRASH_UNSAFE_PRINTF("*** Zone mismatch %p vs. %p at argument %d",
|
||||||
z1, z2, argIndex);
|
z1, z2, argIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ class ContextChecks
|
||||||
// zone, see JS_MarkCrossZoneId.
|
// zone, see JS_MarkCrossZoneId.
|
||||||
if (zone()) {
|
if (zone()) {
|
||||||
if (!cx->runtime()->gc.atomMarking.atomIsMarked(zone(), thing)) {
|
if (!cx->runtime()->gc.atomMarking.atomIsMarked(zone(), thing)) {
|
||||||
MOZ_CRASH_UNSAFE_PRINTF("*** Atom not marked for zone %p at argument %d\n",
|
MOZ_CRASH_UNSAFE_PRINTF("*** Atom not marked for zone %p at argument %d",
|
||||||
zone(), argIndex);
|
zone(), argIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче