WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 247433
220517
SyntaxError Duplicate parameter in function with destructuring with assignment
https://bugs.webkit.org/show_bug.cgi?id=220517
Summary
SyntaxError Duplicate parameter in function with destructuring with assignment
Chris
Reported
2021-01-11 11:26:25 PST
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
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-01-18 11:27:12 PST
<
rdar://problem/73327300
>
Alexey Shvayka
Comment 2
2023-10-12 15:09:54 PDT
This was fixed in
https://commits.webkit.org/256478@main
*** This bug has been marked as a duplicate of
bug 247433
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug