Changeset 165719 in webkit


Ignore:
Timestamp:
Mar 16, 2014 11:15:51 PM (10 years ago)
Author:
akling@apple.com
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):

Location:
trunk/Source/JavaScriptCore
Files:
2 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
  • trunk/Source/JavaScriptCore/ChangeLog

    r165714 r165719  
     12014-03-16  Andreas Kling  <akling@apple.com>
     2
     3        REGRESSION(r165703): JSC tests crashing in StringImpl::destroy().
     4        <https://webkit.org/b/130304>
     5
     6        Reviewed by Anders Carlsson.
     7
     8        Unreviewed, restoring the old behavior of OpaqueJSString::identifier()
     9        that doesn't put a potentially unwanted string into the Identifier table.
     10
     11        * API/OpaqueJSString.cpp:
     12        (OpaqueJSString::identifier):
     13
    1142014-03-16  Brian Burg  <bburg@apple.com>
    215
Note: See TracChangeset for help on using the changeset viewer.