W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2015

[Bug 26985] Remove requirement for prose around iterable<> if object has indexed properties

From: <bugzilla@jessica.w3.org>
Date: Sun, 18 Oct 2015 16:22:55 +0000
To: public-script-coord@w3.org
Message-ID: <bug-26985-3890-Gs4Ll3dA2y@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26985

--- Comment #7 from Boris Zbarsky <bzbarsky@mit.edu> ---
> keys() matching values() is exactly what ECMAScript does too.

Not for arrays, as far as I can tell: [...["abc", "def"].keys()] is [0, 1] but 
[...["abc", "def"].values()] is ["abc", "def"].

At least based on reading the spec.  In actual implementations,
https://esdiscuss.org/topic/array-prototype-values-is-not-web-compat-even-with-unscopables
is a bit of a problem, I guess.  :(

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Sunday, 18 October 2015 16:22:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:24 UTC