<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>192830</bug_id>
          
          <creation_ts>2018-12-18 14:38:40 -0800</creation_ts>
          <short_desc>Annex B.3.5: Var-redeclaration of a catch parameter in a for-of initializer is a syntax error</short_desc>
          <delta_ts>2019-01-29 15:12:21 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=192298</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Kirsling">ross.kirsling</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>saam</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1489075</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2018-12-18 14:38:40 -0800</bug_when>
    <thetext>Annex B.3.5 exempts `try {} catch (e) { var e; }` from being a syntax error, but this exemption should not apply if the var declaration is a for-of initializer.

Spec link:
https://tc39.github.io/ecma262/#sec-variablestatements-in-catch-blocks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1492312</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2019-01-07 11:32:41 -0800</bug_when>
    <thetext>Update:
I&apos;ve proposed that we remove this oddity from the spec instead. :D
https://github.com/tc39/ecma262/pull/1393</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1499739</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2019-01-29 14:40:51 -0800</bug_when>
    <thetext>The above proposal reached consensus! Closing this ticket as no longer necessary. Will remove the corresponding FIXME.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1499752</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2019-01-29 15:12:21 -0800</bug_when>
    <thetext>Committed r240686: &lt;https://trac.webkit.org/changeset/240686&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>