W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2016

[Bug 20158] Unrestricted typed dictionary

From: <bugzilla@jessica.w3.org>
Date: Tue, 27 Sep 2016 16:41:54 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20158-3890-DLGWuqLrNG@http.www.w3.org/Bugs/Public/>

--- 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:25 UTC