bug in object destructuring with computed properties
Bublé version 0.14.2
$ cat destructuring_computed.js
var property = "Prop";
var { [property]: value } = { Prop: "foo" };
console.log(value);
Expected result:
$ cat destructuring_computed.js | node
foo
Transpiled code:
$ cat destructuring_computed.js | bin/buble
var property = "Prop";
var ref = { Prop: "foo" };
var value = ref.property; // should be ref[property]
console.log(value);
Actual (incorrect) result:
$ cat destructuring_computed.js | bin/buble | node
undefined