Changeset 197412 in webkit for trunk/Source/JavaScriptCore/runtime/SparseArrayValueMap.cpp
- Timestamp:
- Mar 1, 2016, 1:45:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/SparseArrayValueMap.cpp
r196490 r197412 99 99 // In the uncommon case that this is a new property, and the array is not 100 100 // extensible, this is not the right thing to have done - so remove again. 101 if (result.isNewEntry && !array->is Extensible()) {101 if (result.isNewEntry && !array->isStructureExtensible()) { 102 102 remove(result.iterator); 103 103 if (shouldThrow) … … 119 119 // In the uncommon case that this is a new property, and the array is not 120 120 // extensible, this is not the right thing to have done - so remove again. 121 if (mode != PutDirectIndexLikePutDirect && result.isNewEntry && !array->is Extensible()) {121 if (mode != PutDirectIndexLikePutDirect && result.isNewEntry && !array->isStructureExtensible()) { 122 122 remove(result.iterator); 123 123 return reject(exec, mode == PutDirectIndexShouldThrow, "Attempting to define property on object that is not extensible.");
Note:
See TracChangeset
for help on using the changeset viewer.