archives

« Bugzilla Issues Index

#3561 — 12.3.5.1, SuperCall : super Argument


SuperCall : super Arguments

1. If IsThisInitialized() is false, throw a ReferenceError exception


Is this really correct? I though we wanted the following to work:

class Derived extends Base {
constructor() {
super();
}
}


The line should be

1. If IsThisInitialized() is true, throw a ReferenceError exception

false -> true

since calling super() on an already initialized this is the error we want.


fixed in rev32 editor's draft


fixed in rev32 draft