diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp index 615b5b02af2d..4deb9224bce8 100644 --- a/dom/base/Document.cpp +++ b/dom/base/Document.cpp @@ -5545,8 +5545,7 @@ already_AddRefed Document::CreateElement( #if DEBUG xpc_DumpJSStack(true, true, false); #endif - MOZ_DIAGNOSTIC_ASSERT(false, - "CreateElement() not allowed in XUL document."); + MOZ_ASSERT_UNREACHABLE("CreateElement() not allowed in XUL document."); rv.Throw(NS_ERROR_FAILURE); return nullptr; }