* add isSpread field * use argument * t.booleanLiteral * fix typo * push empty-argument object * .object * .value * object field should be an expression * lint * update outputs * isSpread for the second argument is redundant * add test * alternating spread
9 lines
121 B
JavaScript
9 lines
121 B
JavaScript
var log = [];
|
|
|
|
var a = {
|
|
...{ get foo() { log.push(1); } },
|
|
get bar() { log.push(2); }
|
|
};
|
|
|
|
expect(log).toEqual([1]);
|