The spec currently has separate algorithms for Evaluation of ObjectLiteral : `{` `}` vs. ObjectLiteral : `{` PropertyDefinitionList `,`? `}`:
1. Return OrdinaryObjectCreate(%Object.prototype%).
vs.
1. Let _obj_ be OrdinaryObjectCreate(%Object.prototype%).
1. Perform ? PropertyDefinitionEvaluation of |PropertyDefinitionList| with argument _obj_.
1. Return _obj_.
But as noted at #3938 (comment) , I would prefer to handle them in one:
1. Let _obj_ be OrdinaryObjectCreate(%Object.prototype%).
1. If |PropertyDefinitionList| is present, perform ? PropertyDefinitionEvaluation of |PropertyDefinitionList| with argument _obj_.
1. Return _obj_.
The spec currently has separate algorithms for Evaluation of
ObjectLiteral : `{` `}`vs.ObjectLiteral : `{` PropertyDefinitionList `,`? `}`:vs.
But as noted at #3938 (comment) , I would prefer to handle them in one: