Bug 270517
| Summary: | scope of async function parameters are broken with local variable declaration | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | wards.afar.0j |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Major | ||
| Priority: | P2 | ||
| Version: | Safari 17 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
wards.afar.0j
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
wards.afar.0j
*** This bug has been marked as a duplicate of bug 223533 ***