Bug 1497160 - Upgrade assertion type. r=baku.
authorHenri Sivonen <hsivonen@hsivonen.fi>
Mon, 08 Oct 2018 13:36:59 +0300
changeset 497208 9b3d9022cce8093be3f745fb023f1d47132dacda
parent 497207 39df6098355c40854c6f54077f897f645fac9cbe
child 497209 2e32d6dc9d1e65682d0b1eecbde3564ec0c39fc5
push id9996
push userarchaeopteryx@coole-files.de
push dateThu, 18 Oct 2018 18:37:15 +0000
treeherdermozilla-beta@8efe26839243 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1497160
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1497160 - Upgrade assertion type. r=baku. Differential Revision: https://phabricator.services.mozilla.com/D7988 MozReview-Commit-ID: KPo6YHEcYYZ
dom/base/EventSource.cpp
--- a/dom/base/EventSource.cpp
+++ b/dom/base/EventSource.cpp
@@ -144,17 +144,17 @@ public:
   void AddRefObject();
   void ReleaseObject();
 
   bool CreateWorkerRef(WorkerPrivate* aWorkerPrivate);
   void ReleaseWorkerRef();
 
   void AssertIsOnTargetThread() const
   {
-    MOZ_ASSERT(IsTargetThread());
+    MOZ_DIAGNOSTIC_ASSERT(IsTargetThread());
   }
 
   bool IsTargetThread() const
   {
     return NS_GetCurrentThread() == mTargetThread;
   }
 
   uint16_t ReadyState()