Is `List` really a specification type?

Axel Rauschmayer axel at rauschma.de
Thu Nov 27 07:26:49 PST 2014


https://people.mozilla.org/~jorendorff/es6-draft.html#sec-proxy-object-internal-methods-and-internal-slots-ownpropertykeys <https://people.mozilla.org/~jorendorff/es6-draft.html#sec-proxy-object-internal-methods-and-internal-slots-ownpropertykeys>

The method `[[OwnPropertyKeys]] ( )` of proxy objects returns an actual `List` to JavaScript code. Does that make sense? I thought it was a specification(-only) type? How an instance is created is vague [1], which is appropriate for a data structure at the specification level, but not for one at the base level. `Array` seems like a better choice here. Or an iterator.

[1] https://people.mozilla.org/~jorendorff/es6-draft.html#sec-createlistfromarraylike

-- 
Dr. Axel Rauschmayer
axel at rauschma.de
rauschma.de



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141127/fcde265a/attachment.html>


More information about the es-discuss mailing list