[Webkit-unassigned] [Bug 189914] Throws incorrectly a syntax error when declaring a top level catch variable the same as a parameter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 25 03:29:24 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=189914

--- Comment #1 from seba kerckhof <seba.kerckhof at gmail.com> ---
Other variations with same problem:

Normal function:
function foo(c){try{}catch({c}){}}

Arrow function:
const foo=c=>{try{}catch({c}){}};

Object shorthand literal:
const foo = {
  bar(c){try{}catch({c}){}}
}


Note that it only seems related to destructuring catch clause arguments, e.g. this works:
function foo(c){try{}catch(c){}}

-- 
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/20180925/876453dd/attachment.html>


More information about the webkit-unassigned mailing list