Skip to content

Commit

Permalink
Correctly transform spreads to use proper concat method (babel#9108)
Browse files Browse the repository at this point in the history
* Correctly transform spreads to use proper concat method

* Add tests to ensure array spread clones elements
  • Loading branch information
danez committed Dec 14, 2018
1 parent 90e5fe6 commit 5f50d11
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -21,7 +21,7 @@ var _ref4 = [a[1], a[0]];
a[0] = _ref4[0];
a[1] = _ref4[1];

var _ref5 = babelHelpers.toConsumableArray(foo).concat([bar]),
var _ref5 = [].concat(babelHelpers.toConsumableArray(foo), [bar]),
a = _ref5[0],
b = _ref5[1];

Expand Down

0 comments on commit 5f50d11

Please sign in to comment.