<?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>160418</bug_id>
          
          <creation_ts>2016-08-01 12:40:27 -0700</creation_ts>
          <short_desc>[ES2016] Implement &apos;class extends null&apos;</short_desc>
          <delta_ts>2016-08-01 12:43:44 -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 Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>160417</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>
          
          <blocked>160392</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="GSkachkov">gskachkov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gskachkov</cc>
    
    <cc>saam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1216223</commentid>
    <comment_count>0</comment_count>
    <who name="GSkachkov">gskachkov</who>
    <bug_when>2016-08-01 12:40:27 -0700</bug_when>
    <thetext>class A extends null {};

class B extends null {
  constructor() {
    debug(this instanceof B &amp;&amp; !(this instanceof Object));
  }
};

// should be true;

Following discussions cover this issue: https://github.com/tc39/ecma262/issues/543
Spec https://github.com/tc39/ecma262/blob/703238399d339ceb7f894f4733626f601d42d05e/workingdocs/ES6-super-construct%3Dproposal.md - Last sentance and 
And https://github.com/tc39/ecma262/issues/22</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1216224</commentid>
    <comment_count>1</comment_count>
    <who name="GSkachkov">gskachkov</who>
    <bug_when>2016-08-01 12:43:44 -0700</bug_when>
    <thetext>Oh, I was so slow in adding new issue, so need to close duplicate

*** This bug has been marked as a duplicate of bug 160417 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>