Use meaningful error message in URLSearchParams::Constructor

master
Fedor 2019-05-20 09:00:52 +03:00
parent c045b74950
commit 1ce601b9b9
1 changed files with 1 additions and 1 deletions

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();