Changeset 59974 in webkit for trunk/JavaScriptCore/runtime/JSString.h
- Timestamp:
- May 21, 2010, 4:49:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSString.h
r59161 r59974 328 328 return m_value; 329 329 } 330 const UString tryGetValue() const 331 { 332 // If this is a rope, m_value should be null - 333 // if this is not a rope, m_value should be non-null. 334 ASSERT(isRope() == m_value.isNull()); 330 const UString& tryGetValue() const 331 { 332 if (isRope()) 333 resolveRope(0); 335 334 return m_value; 336 335 } … … 499 498 return getIndexSlowCase(exec, i); 500 499 ASSERT(i < m_value.size()); 501 return jsSingleCharacterSubstring(exec, value(exec), i);500 return jsSingleCharacterSubstring(exec, m_value, i); 502 501 } 503 502
Note:
See TracChangeset
for help on using the changeset viewer.