Computed property names in object destructuring
bmeurer opened this issue · comments
Benedikt Meurer commented
The current grammar doesn't support computed property names in object destructuring, for example
const {[Symbol.iterator]: iterator} = array;
is valid JavaScript (and TypeScript), but CodeMirror gets highly confused about what it's looking at.
cc @jaro-sevcik
Marijn Haverbeke commented
I didn't even know that was a thing! Attached patch adds support.
Benedikt Meurer commented
Wow, thanks!