[Bug 20158] Unrestricted typed dictionary

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

--- Comment #12 from Boris Zbarsky <bzbarsky@mit.edu> ---
You want your key conversions in prose anyway, I'd think.  If IDL were doing
the conversion for you, then an unsigned short key, faced with this input:

  { hello: "I am here" }

would produce a key of 0, whereas I'm fairly sure your desired behavior is to
skip this key altogether.

Oh, and the (unsigned long or DOMString) case would also not work as you
expect, because the value would start off as a string in ES land, and
http://heycam.github.io/webidl/#es-union will pick string over unsigned long
given a String-typed input (but will coerce to the unsigned long if the union
has no string types in it and the input is a String....)

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

Received on Tuesday, 27 September 2016 16:42:02 UTC