Merge TrivialAtom and CharacterSet into a Term abstraction, prepare Term for composition
[WebKit-https.git] / Source / WebCore / contentextensions / NFA.cpp
index 53a10b6..c791bb4 100644 (file)
@@ -105,8 +105,8 @@ void NFA::restoreToGraphSize(unsigned size)
 
 void NFA::addRuleId(unsigned node, uint64_t ruleId)
 {
-    ASSERT(!m_nodes[node].ruleIds.contains(ruleId));
-    m_nodes[node].ruleIds.append(ruleId);
+    if (!m_nodes[node].ruleIds.contains(ruleId))
+        m_nodes[node].ruleIds.append(ruleId);
 }
 
 static void printRange(bool firstRange, uint16_t rangeStart, uint16_t rangeEnd, uint16_t epsilonTransitionCharacter)