archives

« Bugzilla Issues Index

#3595 — ClassDefinitionEvaluation


Step 10a: If ClassHeritageopt is present and SameValue(constructorParent, %FunctionPrototype%) is
false, then

I think this would be clearer if this just said:

10a. If _ClassBody_opt_ is not present or _superClass_ is *null*, then


how about:

8. If ClassBodyopt is present, let constructor be ConstructorMethod of ClassBody.
9. Else,
a. If ClassHeritageopt is present and superclass is not null, then
i. Let constructor be the result of parsing the String "constructor(... args){ super (...args);}" using the syntactic grammar with the goal symbol MethodDefinition.
b. Else,
i. Let constructor be the result of parsing the String "constructor( ){ }" using the syntactic grammar with the goal symbol MethodDefinition.


LGTM


fixed in rev33 editor's draft


fixed in rev33