[Bug 27008] "Initializing objects from iterables" needs syntax

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

--- Comment #4 from Anne <annevk@annevk.nl> ---
Please forget about the current IDL syntax for Headers. It is not important.

A Headers instance is iterable so we would not have to specialcase it. This is
a bit slower, but that seems fine since it's not a critical path.

I thought a normal object would also be iterable and that Domenic's proposal
would do the right thing for { "H" : "V", "H2" : "V2" }.


My question I guess is whether HeadersInit should just become an alias for
"any" then or if we can do something better.

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

Received on Thursday, 9 October 2014 15:26:08 UTC