Intent to ship: ES6 computed property names

37 views
Skip to first unread message

Erik Arvidsson

unread,
Feb 27, 2015, 12:21:02 PM2/27/15
to v8-u...@googlegroups.com, blink-dev
[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

Dmitry Lomov

unread,
Mar 3, 2015, 8:28:28 AM3/3/15
to Erik Arvidsson, v8-users, blink-dev
LGTM
Reply all
Reply to author
Forward
0 new messages