W3C home > Mailing lists > Public > www-svg@w3.org > February 2015

Re: PathSeg interface

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Mon, 16 Feb 2015 16:11:49 -0500
Message-ID: <54E25D15.5020507@mit.edu>
To: Paul LeBeau <paul.lebeau@gmail.com>, Erik Dahlström <ed@opera.com>
CC: www-svg <www-svg@w3.org>
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.

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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:39 UTC