This helps to find bugs where null strings are indexed into with operator[], as this would previously only report a RefPtr null dereference.
@@ -160,6 +160,7 @@ public:
[[nodiscard]] ALWAYS_INLINE const char& operator[](size_t i) const
{
+ VERIFY(!is_null());
return (*m_impl)[i];
}