Bug 1945910 - Use MOZ_DIAGNOSTIC_CRASH in RunCustomElementCreationCallback::Run(). r=avandolder

Differential Revision: https://phabricator.services.mozilla.com/D236766
This commit is contained in:
Andrew McCreight
2025-02-05 13:44:55 +00:00
parent d6894ef444
commit 90a80982c4

View File

@@ -481,8 +481,7 @@ CustomElementRegistry::RunCustomElementCreationCallback::Run() {
mRegistry->mCustomDefinitions.Get(mAtom);
if (!definition) {
// Callback should set the definition of the type.
MOZ_DIAGNOSTIC_ASSERT(false,
"Callback should set the definition of the type.");
MOZ_DIAGNOSTIC_CRASH("Callback should set the definition of the type.");
return NS_ERROR_FAILURE;
}