Re: [webidl] Fix arrays (#52)

>              </p>
> -            <div class='note'>
> -              <p>
> -                Interfaces using <a class='xattr' href='#ArrayClass'>[ArrayClass]</a> will
> -                need to define a “length” <a class='dfnref' href='#dfn-attribute'>attribute</a>
> -                of type <span class='estype'>unsigned long</span> that exposes the length
> -                of the array-like object, in order for the inherited <span class='estype'>Array</span>
> -                methods to operate correctly.  Such interfaces would typically also
> -                <a class='dfnref' href='#dfn-support-indexed-properties'>support indexed properties</a>,
> -                which would provide access to the array elements.
> -              </p>
> -            </div>
> +            <ol class='algorithm'>
> +              <li>Let <var>values</var> be the result of
> +                <a class='dfnref' href='#dfn-convert-ecmascript-to-idl-value'>converting</a>

This is different from the conversion done in the union type case.  Why?  Seems like we should do the same thing in both cases....

---
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/52/files#r33321706

Received on Friday, 26 June 2015 01:13:40 UTC