Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES6 Computed Properties in object initializer fails in minification #2018

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

ES6 Computed Properties in object initializer fails in minification #2018

JimAnkrom opened this issue Oct 28, 2016 · 0 comments

Comments

@JimAnkrom
Copy link

JimAnkrom commented Oct 28, 2016

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant