Bug 160418 - [ES2016] Implement 'class extends null'
Summary: [ES2016] Implement 'class extends null'
Status: RESOLVED DUPLICATE of bug 160417
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Blocks: 160392
  Show dependency treegraph
Reported: 2016-08-01 12:40 PDT by GSkachkov
Modified: 2016-08-01 12:43 PDT (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description GSkachkov 2016-08-01 12:40:27 PDT
class A extends null {};

class B extends null {
  constructor() {
    debug(this instanceof B && !(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
Comment 1 GSkachkov 2016-08-01 12:43:44 PDT
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 ***