[Bug 16767] Allow user objects for Array[] types

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16767

--- Comment #22 from Cameron McCormack <cam@mcc.id.au> ---
OK, I withdraw my earlier held reservations about converting any kind of
platform object to sequences:

 
http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.587;r2=1.589;f=h

This change:

  * makes any kind of object acceptable to be converted to sequences, array
types,
    dictionaries, callback functions and callback interface types -- except for
    Date and RegExp objects, since they're only treated as their corresponding
    IDL types (or object, of course)

  * makes the corresponding change for the "convert ES value to IDL union type
    value" algorithm

  * ensures that the "convert ES value to IDL sequence value" and "... to
    dictionary value" and "... to callback function/interface value" algorithms
    all prevent a Date or RegExp object from being converted

I think this makes overload resolution and type conversion even simpler than it
was before.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 11 December 2012 05:30:00 UTC