Moti Zilberman 9fc51d6292 Consolidate contiguous var declarations in destructuring transform (#4690)
* Consolidate contiguous var declarations in destructuring transform

Fixes #3081.

* Simplify var node coalescing in es2015-destructuring

* Revert "Simplify var node coalescing in es2015-destructuring"

This reverts commit 15cb373f0726f68225f7080a7ae206a63af174ee.

* More careful condition for var coalescing in es2015-destructuring
2016-10-14 11:51:22 -04:00

8 lines
232 B
JavaScript

var _ref = ["foo", "hello", [", ", "junk"], ["world"]],
a = _ref[1],
_ref$ = babelHelpers.slicedToArray(_ref[2], 1),
b = _ref$[0],
_ref$2 = babelHelpers.slicedToArray(_ref[3], 1),
c = _ref$2[0],
d = _ref[4];