[blink-dev: FYI]
Computed property names allows an expression to compute the name of a
property, both in classes and object literals.
let object = {
[40 + 2]: 'meaning?'
};
The main use case for these are for using symbol keys as property names.
class Iterable {
*[Symbol.iterator]() { yield 1; yield 2; }
}
The ES6 spec is currently RC1. [1]
Mozilla shipped this in Firefox 34.
Internet Explorer support is in their current Preview Release [3].
V8 issue:
https://code.google.com/p/v8/issues/detail?id=3754
Owners:
a...@chromium.org
--
erik