archives

« Bugzilla Issues Index

#457 — 13.5: "FunctionBody"


In 13.5 "Class Definitions",
under "Runtime Semantics: ClassDefinitionEvaluation",
step 4 says:
"If the ClassTail is contained in strict code
or if its FunctionBody is strict code, ..."

What FunctionBody? Change to "ClassBody" ?


FunctionBody actually need to be the body of the constructor method definition.

However, note that strict is further used in this semantic rule. The appropriate place would be to pass it as an argument in steps 9 and 14a. However, first we just need to decide whether classes and/or concise methods are always strict or not.


fixed somewhere along the way