<?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>183090</bug_id>
          
          <creation_ts>2018-02-23 12:33:48 -0800</creation_ts>
          <short_desc>Arrow functions should not be syntax error in short-circuit expressions</short_desc>
          <delta_ts>2018-05-04 11:34:36 -0700</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>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron Chu">aaron_chu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1401785</commentid>
    <comment_count>0</comment_count>
      <attachid>334542</attachid>
    <who name="Aaron Chu">aaron_chu</who>
    <bug_when>2018-02-23 12:33:48 -0800</bug_when>
    <thetext>Created attachment 334542
test case

`var c =  c || () =&gt; {};` causes a syntax error, but `var c =  c || function(){}` does not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1402768</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Chu">aaron_chu</who>
    <bug_when>2018-02-28 16:29:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/38006126 &gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>334542</attachid>
            <date>2018-02-23 12:33:48 -0800</date>
            <delta_ts>2018-02-23 12:33:48 -0800</delta_ts>
            <desc>test case</desc>
            <filename>arrow-function.html</filename>
            <type>text/html</type>
            <size>356</size>
            <attacher name="Aaron Chu">aaron_chu</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KCTx0aXRsZT5BcnJvdyBGdW5jdGlvbjwvdGl0
bGU+CjwvaGVhZD4KPGJvZHk+Cgk8c2NyaXB0PgoJCWxldCBhID0gbnVsbDsKCQlhID0gYSB8fCBm
dW5jdGlvbigpe3JldHVybn07CgkJY29uc29sZS5sb2coYSkgLy8gZnVuY3Rpb24oKXtyZXR1cm59
CgoJCWxldCBhcnJvd0Z1bmN0aW9uID0gKCkgPT4ge307CgkJbGV0IGIgPSBudWxsOwoJCWIgPSBi
IHx8IGFycm93RnVuY3Rpb247CgkJY29uc29sZS5sb2coYikgLy8gKCkgPT4ge30KCgkJbGV0IGMg
PSBudWxsOwoJCWMgPSBjIHx8ICgpID0+IHt9OyAvLyBTeW50YXggRXJyb3IKCTwvc2NyaXB0Pgo8
L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>