Кафе | стратегия установки значений solver.prototxt

Стандарт ECMA-262 (5.1) - Раздел 11.1.5 - Инициализатор объектов

Производственный PropertyNameAndValueList: PropertyNameAndValueList, PropertyAssignment оценивается следующим образом:

1. Let obj be the result of evaluating PropertyNameAndValueList.
2. Let propId be the result of evaluating PropertyAssignment.
...
5. Call the [[DefineOwnProperty]] internal method of obj with arguments propId.name, propId.descriptor, and false.
6. Return obj.

Так что да, порядок соблюдается стандартом.

13
задан Shai 23 May 2016 в 10:47
поделиться