Bug 160418
| Summary: | [ES2016] Implement 'class extends null' | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | GSkachkov <gskachkov> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | gskachkov, saam |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 160392 | ||
GSkachkov
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
GSkachkov
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 ***