Re: [w3c/browser-payment-api] The "if d is resolved" section of updateWith needs to be more explicit about how it gets a PaymentDetails dictionary (#349)

> This isn't taken care of automatically by Web IDL declaring the argument as Promise<PaymentDetails>

Not on its own, no.  You're right that using https://heycam.github.io/webidl/#dfn-perform-steps-once-promise-is-settled would be better; it would also address https://github.com/w3c/browser-payment-api/issues/348

That said, https://heycam.github.io/webidl/#dfn-perform-steps-once-promise-is-settled and https://www.w3.org/2001/tag/doc/promises-guide#shorthand-reacting have different behavior in terms of whether they call the initial value of `then` or not; we should really harmonize them.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/349#issuecomment-266800974

Received on Tuesday, 13 December 2016 17:18:32 UTC