archives

« Bugzilla Issues Index

#4061 — 12.2.5.9 PropertyDefinitionEvaluation, B.3.1: Don't invoke IsFunctionDefinition


12.2.5.9 Runtime Semantics: PropertyDefinitionEvaluation
B.3.1 __proto__ Property Names in Object Initializers

It's not necessary to invoke IsFunctionDefinition if it is directly followed by IsAnonymousFunctionDefinition.

Step 6 for `PropertyDefinition : PropertyName : AssignmentExpression` can be simplified to:

> 6. If IsAnonymousFunctionDefinition(AssignmentExpression) is true, then
> a. Let hasNameProperty be HasOwnProperty(propValue, "name" ).
> b. ReturnIfAbrupt(hasNameProperty).
> c. If hasNameProperty is false, perform SetFunctionName(propValue, propKey).


fixed in rev35 editor's draft


fixed in rev35