Ignore:
Timestamp:
Mar 16, 2014, 11:15:51 PM (11 years ago)
Author:
[email protected]
Message:

REGRESSION(r165703): JSC tests crashing in StringImpl::destroy().
<https://webkit.org/b/130304>

Reviewed by Anders Carlsson.

Unreviewed, restoring the old behavior of OpaqueJSString::identifier()
that doesn't put a potentially unwanted string into the Identifier table.

  • API/OpaqueJSString.cpp:

(OpaqueJSString::identifier):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/OpaqueJSString.cpp

    r165703 r165719  
    7272        return Identifier(Identifier::EmptyIdentifier);
    7373
    74     return Identifier(vm, m_string);
     74    if (m_string.is8Bit())
     75        return Identifier(vm, m_string.characters8(), m_string.length());
     76
     77    return Identifier(vm, m_string.characters16(), m_string.length());
    7578}
    7679
Note: See TracChangeset for help on using the changeset viewer.