зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1289010 - Correct ErrorType message for File CTOR., r=bz
This commit is contained in:
Родитель
be99d4ba83
Коммит
78ccb9fb63
|
@ -560,7 +560,7 @@ File::Constructor(const GlobalObject& aGlobal,
|
|||
ErrorResult& aRv)
|
||||
{
|
||||
if (!nsContentUtils::ThreadsafeIsCallerChrome()) {
|
||||
aRv.Throw(NS_ERROR_FAILURE);
|
||||
aRv.ThrowTypeError<MSG_NOT_SEQUENCE>(NS_LITERAL_STRING("Argument 1 of File.constructor"));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче