Intent to Ship: Object.values() and Object.entries()

25 views
Skip to first unread message

Caitlin Potter

unread,
Apr 27, 2016, 2:56:50 PM4/27/16
to v8-users
Contact emails


Summary

Introduces methods like Object.keys() [2] which will produce an Array containing the values (or entry pairs, as in Array.prototype.entries()) of enumerable properties, in enumeration order.

These are more or less analogous to the popular Lodash library methods _.values(<object>) [3] and _.toPairs(<object>) (now aliased as _.entries(<object>) [4].

Have been implemented in V8 in early Q1 2016 [5], and staged in early Q2 2016 [6]

Interoperability and Compatibility Risk
Feature is late stage in the TC39 process, and will be incorporated into ECMA262 in the near future. It is currently implemented by several vendors:
- Implemented in Mozilla FireFox [7]
- Implemented in ChakraCore [8]

OWP launch tracking bug
See [9] for launch tracking bug

Entry on the feature dashboard
See [10] for feature dashboard entry


Caitlin Potter

unread,
May 3, 2016, 12:13:50 PM5/3/16
to v8-users, blink-dev
+blink-dev

PhistucK

unread,
May 3, 2016, 12:19:18 PM5/3/16
to Caitlin Potter, v8-users, blink-dev
The post itself seems to be missing. :(


PhistucK

On Tue, May 3, 2016 at 7:13 PM, Caitlin Potter <caitpo...@gmail.com> wrote:
+blink-dev

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Caitlin Potter

unread,
May 3, 2016, 12:21:59 PM5/3/16
to v8-users, caitpo...@gmail.com, blin...@chromium.org
It's in v8-users, here's a copy :x

PhistucK

unread,
May 3, 2016, 12:33:28 PM5/3/16
to Caitlin Potter, v8-users, blink-dev
Are the implementations interoperable? Does V8 pass all of the relevant test262 tests?
(By the way, I suggest adding these questions to the standard V8 intent template)


PhistucK

Caitlin Potter

unread,
May 3, 2016, 12:45:52 PM5/3/16
to v8-users, caitpo...@gmail.com, blin...@chromium.org
V8 passes all of the relevant test262 tests included in the current test262 roll.

Regarding interop, there's a bug in the current FireFox implementation (so they do not totally conform to the specification at this time), but I believe the feature is enabled in FF nightly only at the moment, and is not going to result in issues with real content on the web.** --- however I will file a bug shortly.

**I may be wrong about the "unshipped" bit, https://bugzilla.mozilla.org/show_bug.cgi?id=1232639 looks like it shipped the feature to FF47, but that's still a ways off

PhistucK

unread,
May 3, 2016, 12:48:33 PM5/3/16
to Caitlin Potter, v8-users, blink-dev
Thank you. :)


PhistucK

Caitlin Potter

unread,
May 3, 2016, 1:26:48 PM5/3/16
to v8-users, caitpo...@gmail.com, blin...@chromium.org
I was mistaken, the FireFox bug was just a symptom of a well known Symbol not being present yet in FireFox.

So, there are no known compat/interop concerns with FireFox.

Adam Klein

unread,
May 4, 2016, 2:53:34 PM5/4/16
to Caitlin Potter, v8-users, blink-dev
LGTM to ship, given the stage 4 state of the spec and our compat with the test262 tests.
Reply all
Reply to author
Forward
0 new messages