Use meaningful error message in URLSearchParams::Constructor

This commit is contained in:
JustOff 2019-03-14 14:14:45 +02:00 committed by Roy Tam
commit a86de13c47

View file

@ -358,7 +358,7 @@ URLSearchParams::Constructor(const GlobalObject& aGlobal,
sp->Append(entry.mKey, entry.mValue);
}
} else {
MOZ_CRASH("This should not happen.");
MOZ_CRASH("URLSearchParams: Invalid string");
}
return sp.forget();