зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
410c229065
Коммит
d11730c4fe
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче