archives

« Bugzilla Issues Index

#2471 — 12.1.5.8 PropertyDefinitionEvaluation: Don't update [[HomeObject]] and [[MethodName]] if the anonymous function is a ClassExpression


12.1.5.8 Runtime Semantics: PropertyDefinitionEvaluation
- PropertyDefinition : PropertyName : AssignmentExpression

Step 6d should not be executed if the anonymous function is a ClassExpression, otherwise code like `new ({c: class extends Object {}}).c` will no longer work.


fixed in rev23 editor's draft.


fixed in rev23 draft