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

Unclear behavior of dictionary member default values

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 08 Jun 2012 02:46:21 -0400
Message-ID: <4FD19FBD.20000@mit.edu>
To: public-script-coord@w3.org
It's not quite clear to me what the right behavior of dictionary member 
default values is.  Specifically:

1)  For a dictionary argument, does the implementation actually need to 
keep track of whether a member with a default value was present or not? 
  Or can it simply set the member to that default value and treat it as 
present?

2)  For dictionary return values, what, if anything, should happen with 
default values?  Should they end up on the JS object if the relevant 
member was not present in the dictionary?

-Boris
Received on Friday, 8 June 2012 06:46:51 UTC

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