ES6 Computed Properties in object initializer fails in minification #2018

Open
JimAnkrom opened this Issue Oct 28, 2016 · 0 comments

Projects

None yet

1 participant

@JimAnkrom
JimAnkrom commented Oct 28, 2016 edited

Below is valid ES6 syntax (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer )

Minifier reports back an error "Expected '}': [", which leads me to believe computed properties are not yet supported.

let prop = 'hello'; let obj = { [prop]: "world" };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment