Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a small bug in abort's error handling. #733

Merged
merged 1 commit into from Jun 20, 2018

Conversation

mrbkap
Copy link
Contributor

@mrbkap mrbkap commented Jun 20, 2018

Because PaymentRequest.abort returns a Promise<void>, it shouldn't be specified to throw exceptions. Instead, it should return rejected promises.

Somewhat complicating this is that Safari does throw an exception (even though Firefox and Blink do not). This has an impact on web developers as an eager exception will stop their scripts and a rejected promise will not.

@marcoscaceres
Copy link
Member

Marked as non substantive for IPR from ash-nazg.

@marcoscaceres marcoscaceres merged commit a63c968 into w3c:gh-pages Jun 20, 2018
@marcoscaceres
Copy link
Member

Thanks, @mrbkap! Probably a few of those we missed... too much async/await corrupting our editorial practices :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants