[Webkit-unassigned] [Bug 270517] New: scope of async function parameters are broken with local variable declaration
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 5 07:08:45 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=270517
Bug ID: 270517
Summary: scope of async function parameters are broken with
local variable declaration
Product: WebKit
Version: Safari 17
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Major
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zjwpeter at gmail.com
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240305/1021bd86/attachment.htm>
More information about the webkit-unassigned
mailing list