Bug 1618542 - Remove redundant assertions on infallible array operations. r=dom-workers-and-storage-reviewers,janv

Differential Revision: https://phabricator.services.mozilla.com/D69042
This commit is contained in:
Simon Giesecke 2020-04-21 14:34:43 +00:00
Родитель 410c229065
Коммит d11730c4fe
1 изменённых файлов: 4 добавлений и 13 удалений

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

@ -229,9 +229,7 @@ bool StructuredCloneWriteCallback(JSContext* aCx,
return false;
}
const DebugOnly<StructuredCloneFileChild*> newFile =
cloneWriteInfo->mFiles.EmplaceBack(mutableFile);
MOZ_ASSERT(newFile);
return true;
}
@ -293,10 +291,7 @@ bool StructuredCloneWriteCallback(JSContext* aCx,
}
}
const DebugOnly<StructuredCloneFileChild*> newFile =
cloneWriteInfo->mFiles.EmplaceBack(StructuredCloneFileBase::eBlob,
blob);
MOZ_ASSERT(newFile);
cloneWriteInfo->mFiles.EmplaceBack(StructuredCloneFileBase::eBlob, blob);
return true;
}
@ -338,9 +333,7 @@ bool CopyingStructuredCloneWriteCallback(JSContext* aCx,
return false;
}
const DebugOnly<StructuredCloneFileChild*> newFile =
cloneInfo->mFiles.EmplaceBack(StructuredCloneFileBase::eBlob, blob);
MOZ_ASSERT(newFile);
return true;
}
@ -361,9 +354,7 @@ bool CopyingStructuredCloneWriteCallback(JSContext* aCx,
return false;
}
const DebugOnly<StructuredCloneFileChild*> newFile =
cloneInfo->mFiles.EmplaceBack(mutableFile);
MOZ_ASSERT(newFile);
return true;
}