Changeset 55679 in webkit for trunk/JavaScriptCore/runtime/JSString.cpp
- Timestamp:
- Mar 8, 2010, 12:31:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSString.cpp
r55035 r55679 51 51 m_value = newImpl; 52 52 else { 53 for (unsigned i = 0; i < m_fiberCount; ++i) { 54 m_other.m_fibers[i]->deref(); 55 m_other.m_fibers[i] = 0; 56 } 57 m_fiberCount = 0; 58 ASSERT(!isRope()); 59 ASSERT(m_value == UString()); 53 60 throwOutOfMemoryError(exec); 54 61 return; … … 181 188 unsigned i = propertyName.toStrictUInt32(&isStrictUInt32); 182 189 if (isStrictUInt32 && i < m_length) { 183 descriptor.setDescriptor( getIndex(exec, i), DontDelete | ReadOnly);190 descriptor.setDescriptor(jsSingleCharacterSubstring(exec, value(exec), i), DontDelete | ReadOnly); 184 191 return true; 185 192 }
Note:
See TracChangeset
for help on using the changeset viewer.