This reverts commit 43b83f8ed7545b9c049eeed85541fa162842fb8f. Fix objectSpread helper breaking old codes remove tests to regenerate later renamed output new name try using word add comment as requested revert inline name changes add 2 for consistency Update packages/babel-helpers/src/helpers.js Co-Authored-By: Daniel Tschinder <daniel@tschinder.de>
10 lines
169 B
JavaScript
10 lines
169 B
JavaScript
({ x, ...y, a, ...b, c });
|
|
|
|
({ ...Object.prototype });
|
|
|
|
({ ...{ foo: 'bar' } });
|
|
|
|
({ ...{ foo: 'bar' }, ...{ bar: 'baz' } });
|
|
|
|
({ ...{ get foo () { return 'foo' } } });
|