W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

Promises "if not omitted" language

From: Juan Ignacio Dopazo <dopazo.juan@gmail.com>
Date: Mon, 22 Jul 2013 13:05:25 -0300
Message-ID: <CA+ejddWLPFCbkR+uxZo9DhJ=GiKJdCvMa2ntc3wADTowoSvVzg@mail.gmail.com>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
The DOM spec says that callbacks in `then` should be wrapped and added to
the context object "if not omitted":

> Let fulfillWrapper be a promise wrapper callback for resolver and
fulfillCallback if fulfillCallback is not omitted and a promise callback
for resolver and its fulfill algorithm otherwise

A+ and most promises implementations allow non-function values like `null`
to be ignored, but the "if not omitted" language means that only
`undefined` is ignored. Can it be changed to "if

Received on Monday, 22 July 2013 16:06:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:17 UTC