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

Use of Promise.reject as a constructor #10

Merged
merged 1 commit into from
Oct 15, 2014
Merged

Conversation

Zirak
Copy link

@Zirak Zirak commented Oct 15, 2014

When a body was used more than once, Promise.reject was called as a constructor which threw a TypeError, at least in latest Chrome.

Ammended tets to also check error message, not just type.
dgraham added a commit that referenced this pull request Oct 15, 2014
Use of `Promise.reject` as a constructor
@dgraham dgraham merged commit d0f2611 into JakeChampion:master Oct 15, 2014
@dgraham
Copy link
Contributor

dgraham commented Oct 15, 2014

Thanks for spotting that typo and adding tests. ⚡

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants