Bug 300364

Summary: Use uncheckedDowncast<>() in generated toJSNewlyCreated() functions
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: BindingsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Chris Dumez
Reported 2025-10-07 19:48:29 PDT
Use uncheckedDowncast<>() in generated toJSNewlyCreated() functions instead of downcast<>(), since the code does a `is<>()` check right before and we want to guarantee the compiler doesn't generate the type check twice.
Attachments
Chris Dumez
Comment 1 2025-10-07 19:49:41 PDT
EWS
Comment 2 2025-10-07 22:19:29 PDT
Committed 301186@main (287f8c8f6baf): <https://commits.webkit.org/301186@main> Reviewed commits have been landed. Closing PR #51983 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-10-07 22:20:14 PDT
Note You need to log in before you can comment on or make changes to this bug.