Changeset 178928 in webkit for trunk/Source/JavaScriptCore/runtime/JSString.cpp
- Timestamp:
- Jan 22, 2015, 11:34:34 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSString.cpp
r178894 r178928 426 426 } 427 427 428 Optional<uint32_t> index = propertyName.asIndex(); 429 if (index && index.value() < m_length) { 430 descriptor.setDescriptor(getIndex(exec, index.value()), DontDelete | ReadOnly); 428 unsigned i = propertyName.asIndex(); 429 if (i < m_length) { 430 ASSERT(i != PropertyName::NotAnIndex); // No need for an explicit check, the above test would always fail! 431 descriptor.setDescriptor(getIndex(exec, i), DontDelete | ReadOnly); 431 432 return true; 432 433 }
Note:
See TracChangeset
for help on using the changeset viewer.