Re: [v8-users] Intent to Ship: Array.prototype.values

60 views
Skip to first unread message

Mathias Bynens

unread,
Jan 31, 2018, 7:09:37 PM1/31/18
to v8-users, blink-dev
Third time’s the charm! 🤞

On Wed, Jan 31, 2018 at 4:07 PM, Sathya Gunasekaran <gsa...@chromium.org> wrote:
Contact Emails:
gsa...@chromium.org

Spec:
https://tc39.github.io/ecma262/#sec-array.prototype.values

Summary:
The values() method returns a new Array Iterator object that contains the values for each index in the array.

Compatibility Risk:
The compat risk is high. There has been two attempts to ship this already back in 2014 and 2016, both of which found this to be web incompatible. For more details see:
https://bugs.chromium.org/p/chromium/issues/detail?id=409858
https://bugs.chromium.org/p/chromium/issues/detail?id=615873

Both the launches were found to be incompatible with enterprise software (that couldn't be easily updated). Unfortunately, there's no easy to way to find out if this is still the case today.

The shipping plan is to enable this feature by default and add both: a finch and an about:flags kill switch.

The finch kill switch can be used to turn this off if more than just the enterprise site breaks. The about:flags kill switch can be toggled by the enterprise site users if it breaks, leaving the rest of the world to enjoy Array.prototype.values.

Interoperability:
Edge and Safari both ship this feature.

Firefox does not ship this. They had similar web compat problems when they tried to ship this:
https://bugzilla.mozilla.org/show_bug.cgi?id=1299444

But they plan to try and ship this again soon along with Chrome:
https://bugzilla.mozilla.org/show_bug.cgi?id=1420101

Tracking bug:
https://bugs.chromium.org/p/v8/issues/detail?id=4247

Chromestatus entry:
https://www.chromestatus.com/feature/4755812090118144

--
--
v8-users mailing list
v8-u...@googlegroups.com
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 v8-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rick Byers

unread,
Jan 31, 2018, 8:18:59 PM1/31/18
to Mathias Bynens, v8-users, blink-dev
Yay!
Given the biggest compat issues were with Microsoft products, and Edge ships this anyway, I definitely think we should try to push ahead.  Good luck! 

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADizRgYNLxRx-7CRsvF-WdEXDo1-eJ6PtRhgHZ28YiWfQXUoww%40mail.gmail.com.

PhistucK

unread,
Feb 1, 2018, 1:40:26 AM2/1/18
to Rick Byers, Mathias Bynens, v8-users, blink-dev
> and Edge ships this anyway
I wonder whether those specific Microsoft products even support Edge. Hunch? No.

I think this should be shipped regardless. It feels like a low-ransom hostage situation. :P


PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_jxK%2BJ8wf2S%2BrU_h85hmWuoitgZ_ffW7GxmKYhGi9H%2BQ%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages