archives

« Bugzilla Issues Index

#3735 — 14.5.14 Does not handle missing constructor correctly


Given:

class C {
m() {}
}

Step 8 says:

8. If ClassBodyopt is present, let constructor be ConstructorMethod of ClassBody.

This leads to an empty _constructor_.

The old spec draft handled this correctly.

8. If ClassBodyopt is not present, let constructor be empty.
9. Else, let constructor be ConstructorMethod of ClassBody.
10. If constructor is empty, then


fixed in rev33 editor's draft


fixed in rev33