[heycam/webidl] Allow iterable objects without having to become fake arrays (or fix spec) (#325)

Right now, if you use an `iterable<>` declaration, you must also "support indexed properties". This requires you to define the set of "supported property indexes", define a "length" attribute, and appears to require you to define an indexed property getter (and presumably an optional setter, if you're not readonly?).

On the other hand, the `iterable<>` example does none of those - the "SessionManager" just says `iterable<Session>` and nothing else.  The example refers to "values to iterate over", which appears to be a broken link (just links to #).

So does `iterable<>` automatically make you a fake array, or does it just mean you provide a value iterator?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/325

Received on Thursday, 2 March 2017 01:58:53 UTC