diff options
Diffstat (limited to 'JavaScriptCore/wtf/text/StringImpl.cpp')
-rw-r--r-- | JavaScriptCore/wtf/text/StringImpl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/JavaScriptCore/wtf/text/StringImpl.cpp b/JavaScriptCore/wtf/text/StringImpl.cpp index a667525..7822c00 100644 --- a/JavaScriptCore/wtf/text/StringImpl.cpp +++ b/JavaScriptCore/wtf/text/StringImpl.cpp @@ -48,8 +48,10 @@ StringImpl::~StringImpl() if (isAtomic()) AtomicString::remove(this); #if USE(JSC) - if (isIdentifier()) - wtfThreadData().currentIdentifierTable()->remove(this); + if (isIdentifier()) { + if (!wtfThreadData().currentIdentifierTable()->remove(this)) + CRASH(); + } #endif BufferOwnership ownership = bufferOwnership(); |