summaryrefslogtreecommitdiff
path: root/AK/Utf32View.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/Utf32View.h')
-rw-r--r--AK/Utf32View.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/AK/Utf32View.h b/AK/Utf32View.h
index 89c0eefcea..25f4c4a828 100644
--- a/AK/Utf32View.h
+++ b/AK/Utf32View.h
@@ -39,6 +39,7 @@ public:
: m_codepoints(codepoints)
, m_length(length)
{
+ ASSERT(codepoints || length == 0);
}
const u32* codepoints() const { return m_codepoints; }