Classes extending null are no longer considered derived classes in ES2017

RESOLVED WONTFIX

Status

()

Core
JavaScript Engine
RESOLVED WONTFIX
2 years ago
2 years ago

People

(Reporter: anba, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
Points:
---

Firefox Tracking Flags

(firefox53 affected)

Details

(Reporter)

Description

2 years ago
`new class extends null {};` no longer throws a TypeError with the current ES2017 semantics.


ES2017 spec and related discussions:
https://tc39.github.io/ecma262/#sec-runtime-semantics-classdefinitionevaluation
https://github.com/tc39/ecma262/issues/543
https://github.com/tc39/ecma262/issues/699
(Reporter)

Comment 1

2 years ago
TC39 has reverted the spec change in https://github.com/tc39/ecma262/pull/781.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.