Changeset 178928 in webkit for trunk/Source/JavaScriptCore/runtime/JSArray.cpp
- Timestamp:
- Jan 22, 2015, 11:34:34 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSArray.cpp
r178894 r178928 159 159 // 4. Else if P is an array index (15.4), then 160 160 // a. Let index be ToUint32(P). 161 if (Optional<uint32_t> optionalIndex = propertyName.asIndex()) { 161 unsigned index = propertyName.asIndex(); 162 if (index != PropertyName::NotAnIndex) { 162 163 // b. Reject if index >= oldLen and oldLenDesc.[[Writable]] is false. 163 uint32_t index = optionalIndex.value();164 164 if (index >= array->length() && !array->isLengthWritable()) 165 165 return reject(exec, throwException, "Attempting to define numeric property on array with non-writable length property.");
Note:
See TracChangeset
for help on using the changeset viewer.