Changeset 178928 in webkit for trunk/Source/JavaScriptCore/runtime/JSString.h
- Timestamp:
- Jan 22, 2015, 11:34:34 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSString.h
r178894 r178928 627 627 } 628 628 629 Optional<uint32_t> index = propertyName.asIndex(); 630 if (index && index.value() < m_length) { 631 slot.setValue(this, DontDelete | ReadOnly, getIndex(exec, index.value())); 629 unsigned i = propertyName.asIndex(); 630 if (i < m_length) { 631 ASSERT(i != PropertyName::NotAnIndex); // No need for an explicit check, the above test would always fail! 632 slot.setValue(this, DontDelete | ReadOnly, getIndex(exec, i)); 632 633 return true; 633 634 }
Note:
See TracChangeset
for help on using the changeset viewer.