Changeset 128706 in webkit for trunk/Source/JavaScriptCore/runtime/JSArray.cpp
- Timestamp:
- Sep 16, 2012, 12:22:46 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSArray.cpp
r128680 r128706 478 478 } 479 479 480 // Pushing to an array of length 2^32-1stores the property, but throws a range error.481 if ( UNLIKELY(storage->length() == 0xFFFFFFFFu)) {480 // Pushing to an array of invalid length (2^31-1) stores the property, but throws a range error. 481 if (storage->length() > MAX_ARRAY_INDEX) { 482 482 methodTable()->putByIndex(this, exec, storage->length(), value, true); 483 483 // Per ES5.1 15.4.4.7 step 6 & 15.4.5.1 step 3.d.
Note:
See TracChangeset
for help on using the changeset viewer.