Bug 1619112 part 2. Pass char literals instead of char16_t literals into ErrorResult throwing methods. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D65538
This commit is contained in:
Boris Zbarsky
2020-03-06 21:04:58 +00:00
parent e62294ae3a
commit e62a6fc4d1
54 changed files with 144 additions and 152 deletions

View File

@@ -136,7 +136,7 @@ already_AddRefed<Response> Response::Redirect(const GlobalObject& aGlobal,
if (aStatus != 301 && aStatus != 302 && aStatus != 303 && aStatus != 307 &&
aStatus != 308) {
aRv.ThrowRangeError(u"Invalid redirect status code.");
aRv.ThrowRangeError("Invalid redirect status code.");
return nullptr;
}
@@ -175,7 +175,7 @@ already_AddRefed<Response> Response::Constructor(
}
if (aInit.mStatus < 200 || aInit.mStatus > 599) {
aRv.ThrowRangeError(u"Invalid response status code.");
aRv.ThrowRangeError("Invalid response status code.");
return nullptr;
}
@@ -263,7 +263,7 @@ already_AddRefed<Response> Response::Constructor(
if (!aBody.IsNull()) {
if (aInit.mStatus == 204 || aInit.mStatus == 205 || aInit.mStatus == 304) {
aRv.ThrowTypeError(u"Response body is given with a null body status.");
aRv.ThrowTypeError("Response body is given with a null body status.");
return nullptr;
}