[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: [email protected]

-- 
erik

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to