Changeset 47092 in webkit for trunk/JavaScriptCore/runtime/JSArray.cpp
- Timestamp:
- Aug 11, 2009, 11:22:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSArray.cpp
r47022 r47092 349 349 } 350 350 351 storage = static_cast<ArrayStorage*>(tryFastRealloc(storage, storageSize(newVectorLength))); 352 if (!storage) { 351 if (!tryFastRealloc(storage, storageSize(newVectorLength)).getValue(storage)) { 353 352 throwOutOfMemoryError(exec); 354 353 return; … … 468 467 unsigned newVectorLength = increasedVectorLength(newLength); 469 468 470 storage = static_cast<ArrayStorage*>(tryFastRealloc(storage, storageSize(newVectorLength))); 471 if (!storage) 469 if (!tryFastRealloc(storage, storageSize(newVectorLength)).getValue(storage)) 472 470 return false; 473 471
Note:
See TracChangeset
for help on using the changeset viewer.