Bug 1289010 - Correct ErrorType message for File CTOR., r=bz

This commit is contained in:
Andrea Marchesini 2016-07-25 22:42:31 +02:00
Родитель be99d4ba83
Коммит 78ccb9fb63
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}