Bug 252813

Summary: Avoid unnecessary alloc/init for NSDictionary
Product: WebKit Reporter: Seija K. <doremylover123>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Seija K. 2023-02-23 06:04:29 PST
The compiler initializes an NSDictionary when the @ syntax is used. If an underlying error happens, alloc/init is called again. Let's avoid that.
Comment 1 Seija K. 2023-02-23 06:10:29 PST
Pull request: https://github.com/WebKit/WebKit/pull/10335
Comment 2 EWS 2023-02-23 20:51:19 PST
Committed 260782@main (4543085706ef): <https://commits.webkit.org/260782@main>

Reviewed commits have been landed. Closing PR #10335 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-02-23 20:52:29 PST
<rdar://problem/105867295>