mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1444971 - fix diagnostic assert condition in ReadStream; r=baku
Using MOZ_DIAGNOSTIC_ASSERT_ENABLED here is a little clearer than RELEASE_OR_BETA and makes disabling diagnostic assertions globally easier.
This commit is contained in:
parent
89b8270203
commit
b9b5a1379d
2
dom/cache/ReadStream.cpp
vendored
2
dom/cache/ReadStream.cpp
vendored
@ -611,7 +611,7 @@ ReadStream::Create(const CacheReadStream& aReadStream)
|
||||
nsCOMPtr<nsIInputStream> stream = DeserializeIPCStream(aReadStream.stream());
|
||||
|
||||
// Currently we expect all cache read streams to be blocking file streams.
|
||||
#if !defined(RELEASE_OR_BETA)
|
||||
#if defined(MOZ_DIAGNOSTIC_ASSERT_ENABLED)
|
||||
if (stream) {
|
||||
nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(stream);
|
||||
MOZ_DIAGNOSTIC_ASSERT(!asyncStream);
|
||||
|
Loading…
Reference in New Issue
Block a user