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
<rdar://problem/73327300>
This was fixed in https://commits.webkit.org/256478@main *** This bug has been marked as a duplicate of bug 247433 ***