Bug 169786 - Make clients of JSArray::tryCreateForInitializationPrivate() throw an exception on failure instead of asserting.
Summary: Make clients of JSArray::tryCreateForInitializationPrivate() throw an excepti...
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Lam
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-03-16 14:37 PDT by Mark Lam
Modified: 2017-03-16 14:37 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lam 2017-03-16 14:37:11 PDT
Currently, some clients of JSArray::tryCreateForInitializationPrivate() simply do a RELEASE_ASSERT that it succeeds.  It would be nicer if we can throw an OutOfMemoryError instead on failure.
Comment 1 Radar WebKit Bug Importer 2017-03-16 14:37:53 PDT
<rdar://problem/31099169>