[Webkit-unassigned] [Bug 220517] New: SyntaxError Duplicate parameter in function with destructuring with assignment
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 11 11:26:25 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=220517
Bug ID: 220517
Summary: SyntaxError Duplicate parameter in function with
destructuring with assignment
Product: WebKit
Version: Safari 14
Hardware: Mac (Intel)
OS: macOS 10.15
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ychris2010-1 at yahoo.com
Webkit throws a SyntaxError with message "Duplicate parameter <name> not allowed in function with destructuring parameters." when attempting to assign a function to another variable. This does not occur if the function is declared separately from the assignment.
Works:
function a({ test: a }) { console.log(a); }
let b = a;
Throws SyntaxError:
let b = function a({ test: a }) { console.log(a); };
Reproduced with Webkit build 271364
--
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/20210111/1278c61d/attachment-0001.htm>
More information about the webkit-unassigned
mailing list