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: complete() returns rejected promise #732

Merged
merged 1 commit into from Jun 25, 2018
Merged

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Jun 19, 2018

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

Copy link
Collaborator

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems not very editorial, since it fixes a bug, but LGTM.

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

This just returns a rejected promise if the completeCalled is `true`.
@marcoscaceres marcoscaceres changed the title Editorial: complete() returns rejected promise fix: complete() returns rejected promise Jun 25, 2018
@marcoscaceres
Copy link
Member Author

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

@marcoscaceres
Copy link
Member Author

marcoscaceres commented Jun 25, 2018

Added test web-platform-tests/wpt#11665

@marcoscaceres
Copy link
Member Author

Argh.. linking is hard.

@marcoscaceres marcoscaceres merged commit f15ef69 into gh-pages Jun 25, 2018
@marcoscaceres marcoscaceres deleted the fixup_complete branch June 25, 2018 21:29
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