Files
babel/packages/babel-plugin-check-es2015-constants/test/fixtures/general/destructuring/expected.js
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

11 lines
162 B
JavaScript

var a = 1,
b = 2;
var c = 3,
d = 4;
var _e$f = { e: 5, f: 6 },
e = _e$f.e,
f = _e$f.f;
var _a$b = { a: 7, b: 8 },
g = _a$b.a,
h = _a$b.b;