Changeset 55035 in webkit for trunk/JavaScriptCore/runtime/JSString.cpp
- Timestamp:
- Feb 19, 2010, 3:36:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSString.cpp
r54843 r55035 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());60 53 throwOutOfMemoryError(exec); 61 54 return; … … 188 181 unsigned i = propertyName.toStrictUInt32(&isStrictUInt32); 189 182 if (isStrictUInt32 && i < m_length) { 190 descriptor.setDescriptor( jsSingleCharacterSubstring(exec, value(exec), i), DontDelete | ReadOnly);183 descriptor.setDescriptor(getIndex(exec, i), DontDelete | ReadOnly); 191 184 return true; 192 185 }
Note:
See TracChangeset
for help on using the changeset viewer.