Open
Bug 1369793
Opened 7 years ago
Updated 2 years ago
Confusing error when |class C extends null|
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: tcampbell, Unassigned)
References
(Blocks 1 open bug)
Details
Silly example: > var B = null; > class C extends B { > a() { return super.x; } > } > new C() FF gives the following error message. > TypeError: function () { } is not a constructor This is confusing because an empty function is a constructor and the problem is related to super constructor instead. As an example, chrome correctly explains: > Uncaught TypeError: Super constructor null of C is not a constructor > at C (<anonymous>:1:1) > at <anonymous>:1:1
Reporter | ||
Updated•7 years ago
|
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•