@domenic,
`[[waitForUpdate]]` is an internal slot in `PaymentRequestUpdateEvent`. I believe it gets flipped when someone calls `updateWith` from within an event handler so that:
1. An invalid state exception will be thrown if `updateWith` is called more than once.
2. As a guard that will prevent event handling from completing until unset again.
https://github.com/domenic/browser-payment-api/blob/85074dda44c64c088f87f961ac503783dc22114b/index.html#L1623-L1624
I believe its analog is the "[wait to respond flag](https://www.w3.org/TR/service-workers/#wait-to-respond-flag)" used in the fetch spec's [respondWith method](https://www.w3.org/TR/service-workers/#fetch-event-respondwith-method).
--
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/371#issuecomment-273657109