Re: PathSeg interface

On 2/16/15 1:49 PM, Paul LeBeau wrote:
> I'm not very familiar with how WebIDL constructs map to JS.  Does a
> sequence<T> map to an array, or something similar to an HTMLCollection?

Converting a sequence<T> to a JS value (e.g. for a sequence<T> return 
value) produces an ES Array.

Converting a JS value to a sequence<T> (e.g. for a sequence<T> argument) 
iterates the JS value and converts each value returned by the iterator 
to type T.

-Boris

Received on Monday, 16 February 2015 21:12:19 UTC