RE: How to correctly spec sequences requiring an iterable

Channeling Allen... I think the "correct" (or, less prescriptively, "idiomatic") way to do this would be to just iterate over the incoming object and see what happens, letting any thrown errors bubble out.

But, bringing us back to reality, i.e. to WebIDL's argument-check-immediately paradigm, trying to iterate over anything except something where GetProperty(obj, @@iterator) returns a callable object will throw a TypeError pretty quickly. So I think it's that.


Received on Friday, 15 November 2013 16:16:13 UTC