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

[WebIDL] Type conversions triggered by "any" can be lossy

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 10 Oct 2012 21:25:54 -0400
Message-ID: <50762022.9020908@mit.edu>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
I'm looking at http://dev.w3.org/2006/webapi/WebIDL/#es-any and it looks 
like if I pass NaN for an "any" value an exception will be thrown.  That 
seems wrong to me.  Presumably the "Number value" case should be using 
"unrestricted double", not "double".

Received on Thursday, 11 October 2012 01:26:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:47 UTC