<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>270517</bug_id>
          
          <creation_ts>2024-03-05 07:08:45 -0800</creation_ts>
          <short_desc>scope of async function parameters are broken with local variable declaration</short_desc>
          <delta_ts>2024-03-05 07:41:34 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>Safari 17</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>223533</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>wards.afar.0j</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2018761</commentid>
    <comment_count>0</comment_count>
    <who name="">wards.afar.0j</who>
    <bug_when>2024-03-05 07:08:45 -0800</bug_when>
    <thetext>Run this code:

```js
window.fn1 = async e =&gt; { var e = e[&quot;source&quot;]; console.log({ e }) };
window.fn1({ source: 123 })
```

All other browsers works, Safari 17.3.1 throws an error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2018766</commentid>
    <comment_count>1</comment_count>
    <who name="">wards.afar.0j</who>
    <bug_when>2024-03-05 07:41:34 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 223533 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>