babel/test/fixtures/traceur/Scope/DeconstructingBlockBinding.js
2015-01-04 19:40:09 +11:00

13 lines
285 B
JavaScript

// Options: --block-binding
if (true) {
let [a,b] = [1,2];
const [c,d] = [4,5];
}
if (true) {
let {x: [{e}, f], g} = {x: [{e:4}, 5], g: 6};
const a = 0, [b, {c, x: [d]}] = [1, {c: 2, x: [3]}];
}
// ----------------------------------------------------------------------------