Changeset 214313 in webkit for trunk/Source/JavaScriptCore/ftl
- Timestamp:
- Mar 23, 2017, 1:31:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ftl/FTLOperations.cpp
r214071 r214313 364 364 ASSERT(argumentCount > 0); 365 365 unsigned arraySize = (argumentCount - 1) > numberOfArgumentsToSkip ? argumentCount - 1 - numberOfArgumentsToSkip : 0; 366 367 // FIXME: we should throw an out of memory error here if tryCreateForInitializationPrivate() fails. 368 // https://bugs.webkit.org/show_bug.cgi?id=169784 366 369 JSArray* array = JSArray::tryCreateForInitializationPrivate(vm, structure, arraySize); 367 370 RELEASE_ASSERT(array); … … 453 456 } 454 457 458 // FIXME: we should throw an out of memory error here if checkedArraySize has hasOverflowed() or tryCreateForInitializationPrivate() fails. 459 // https://bugs.webkit.org/show_bug.cgi?id=169784 455 460 unsigned arraySize = checkedArraySize.unsafeGet(); // Crashes if overflowed. 456 461 JSArray* result = JSArray::tryCreateForInitializationPrivate(vm, structure, arraySize);
Note:
See TracChangeset
for help on using the changeset viewer.