<?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>172739</bug_id>
          
          <creation_ts>2017-05-30 16:31:53 -0700</creation_ts>
          <short_desc>Null pointer crash when handling async with arrow operator</short_desc>
          <delta_ts>2017-05-30 23:37:48 -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>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>171274</dup_id>
          
          <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="Natalie Silvanovich">natashenka</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>gskachkov</cc>
    
    <cc>saam</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1313924</commentid>
    <comment_count>0</comment_count>
      <attachid>311551</attachid>
    <who name="Natalie Silvanovich">natashenka</who>
    <bug_when>2017-05-30 16:31:53 -0700</bug_when>
    <thetext>Created attachment 311551
script causing the crash

The following script crashes with a null pointer exception in JSC (also attached) .

class BaseClass {
  constructor(x) {

  }

};

class DeferredSuperCall extends BaseClass {
  constructor(x) {
    return async() =&gt; super(x);
  }
};

var q =  new DeferredSuperCall(&quot;LexicalSuperCall&quot;)();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1313976</commentid>
    <comment_count>1</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-05-30 19:16:52 -0700</bug_when>
    <thetext>I think this is fixed as of today. Aleksandr, is this a dupe of what you fixed today?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1314099</commentid>
    <comment_count>2</comment_count>
    <who name="GSkachkov">gskachkov</who>
    <bug_when>2017-05-30 23:16:46 -0700</bug_when>
    <thetext>(In reply to Saam Barati from comment #1)
&gt; I think this is fixed as of today. Aleksandr, is this a dupe of what you
&gt; fixed today?

Yes, it is the same as bug 171274</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1314102</commentid>
    <comment_count>3</comment_count>
    <who name="GSkachkov">gskachkov</who>
    <bug_when>2017-05-30 23:37:48 -0700</bug_when>
    <thetext>(In reply to Natalie Silvanovich from comment #0)
&gt; Created attachment 311551 [details]
&gt; script causing the crash
&gt; 
&gt; The following script crashes with a null pointer exception in JSC (also
&gt; attached) .
&gt; 
&gt; class BaseClass {
&gt;   constructor(x) {
&gt; 
&gt;   }
&gt; 
&gt; };
&gt; 
&gt; class DeferredSuperCall extends BaseClass {
&gt;   constructor(x) {
&gt;     return async() =&gt; super(x);
&gt;   }
&gt; };
&gt; 
&gt; var q =  new DeferredSuperCall(&quot;LexicalSuperCall&quot;)();

Natalie, thanks for registering this issue. We just fixed this similar bug 171274 recently. As for now I can&apos;t reproduce your issue on latest Webkit nightly build, so I&apos;m closing this task as duplicate. 
Could you please recheck if it fixed your issue on latest WebKit nightly or latest sources?

*** This bug has been marked as a duplicate of bug 171274 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>311551</attachid>
            <date>2017-05-30 16:31:53 -0700</date>
            <delta_ts>2017-05-30 16:31:53 -0700</delta_ts>
            <desc>script causing the crash</desc>
            <filename>supercrash.js</filename>
            <type>application/javascript</type>
            <size>209</size>
            <attacher name="Natalie Silvanovich">natashenka</attacher>
            
              <data encoding="base64">Y2xhc3MgQmFzZUNsYXNzIHsKICBjb25zdHJ1Y3Rvcih4KSB7CgogIH0KCn07CgpjbGFzcyBEZWZl
cnJlZFN1cGVyQ2FsbCBleHRlbmRzIEJhc2VDbGFzcyB7CiAgY29uc3RydWN0b3IoeCkgewogICAg
cmV0dXJuIGFzeW5jKCkgPT4gc3VwZXIoeCk7CiAgfQp9OwoKdmFyIHEgPSAgbmV3IERlZmVycmVk
U3VwZXJDYWxsKCJMZXhpY2FsU3VwZXJDYWxsIikoKTsKCgoKCgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>