W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2013

[Futures] accept/resolve/reject on a resolver don't have clearly defined behavior if no value is passed

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 30 May 2013 23:43:49 -0400
Message-ID: <51A81C75.5060201@mit.edu>
To: DOM mailing list <www-dom@w3.org>
The spec has:

   void accept(optional any value);

and the prose says:

   The accept(value) method must run context object's accept with value.

But "value" is optional, so it can be not passed.  And the accept 
algorithm assumes there is a value.  Maybe.  It certainly passes the 
value to callbacks, but those callbacks have an _optional_ argument.  So 
maybe the intent is that if accept() is not passed a value the callbacks 
will also not be passed a value?

This needs to be clarified.

-Boris
Received on Friday, 31 May 2013 03:44:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:20 UTC