Bug 270517

Summary: scope of async function parameters are broken with local variable declaration
Product: WebKit Reporter: wards.afar.0j
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major    
Priority: P2    
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   

wards.afar.0j
Reported 2024-03-05 07:08:45 PST
Run this code: ```js window.fn1 = async e => { var e = e["source"]; console.log({ e }) }; window.fn1({ source: 123 }) ``` All other browsers works, Safari 17.3.1 throws an error.
Attachments
wards.afar.0j
Comment 1 2024-03-05 07:41:34 PST
*** This bug has been marked as a duplicate of bug 223533 ***
Note You need to log in before you can comment on or make changes to this bug.