From c2153e851611cf4e737538ceb5d69b4267431526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Cla=C3=9Fen?= Date: Tue, 21 Apr 2026 21:25:45 +0200 Subject: [PATCH] The assumption is that the stubs are never called. If this assumption does not hold, we should abort and not continue. refs #4 --- ghostery/validate-dnr-rules/src/stubs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghostery/validate-dnr-rules/src/stubs.cpp b/ghostery/validate-dnr-rules/src/stubs.cpp index ed07bc7ff36a..57946c1a975f 100644 --- a/ghostery/validate-dnr-rules/src/stubs.cpp +++ b/ghostery/validate-dnr-rules/src/stubs.cpp @@ -33,17 +33,17 @@ namespace JSC::Yarr { bool characterClassMayContainStrings(BuiltInCharacterClassID) { - return false; + std::abort(); } std::optional unicodeMatchProperty(WTF::String, CompileMode) { - return std::nullopt; + std::abort(); } std::optional unicodeMatchPropertyValue(WTF::String, WTF::String) { - return std::nullopt; + std::abort(); } } // namespace JSC::Yarr