W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

[webidl] DOMString

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 21 Apr 2009 10:38:25 +0200
To: "WebApps WG" <public-webapps@w3.org>
Message-ID: <op.usqaab1364w2qv@annevk-t60.oslo.opera.com>
If something takes a DOMString as value is it clearly defined what happens  
if the toString algorithm throws or returns a non-DOMString? I haven't  
been able to find descriptions for that in the Web IDL specification. E.g.

   obj  = { toString:function() { throw("haha") } }
   obj2 = { toString:function() { return 1 } }
   obj3 = { toString:function() { return obj } }


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 21 April 2009 08:39:12 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:31 GMT