W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

[webidl] Unions involving a primitive and a string don't make any sense

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 30 Mar 2012 16:24:05 -0700
Message-ID: <4F764095.70602@mit.edu>
To: public-script-coord@w3.org
In particular, unions are allowed to contain both a string (or enum) and 
a primitive, but if you try to convert a JS value to such a union the 
string is always picked (http://dev.w3.org/2006/webapi/WebIDL/#es-union 
step 7).  That seems wrong.

-Boris
Received on Friday, 30 March 2012 23:24:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC