w3c / payment-request

Payment Request API
https://www.w3.org/TR/payment-request/
Other
488 stars 135 forks source link

fix: complete() returns rejected promise #732

Closed marcoscaceres closed 6 years ago

marcoscaceres commented 6 years ago

The current spec text read as if calling complete() twice would cause the interface to close down based on the second call.

This just returns a rejected promise if the completeCalled is true.


Preview | Diff

marcoscaceres commented 6 years ago

Yeah, you are right... not editorial. Adding a test.

marcoscaceres commented 6 years ago

Added test https://github.com/web-platform-tests/wpt/pull/11665/

marcoscaceres commented 6 years ago

Argh.. linking is hard.