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

Make .toPromise attempt to use default Promise constructor #647

Open
kirly-af opened this issue May 11, 2018 · 3 comments
Open

Make .toPromise attempt to use default Promise constructor #647

kirly-af opened this issue May 11, 2018 · 3 comments

Comments

@kirly-af
Copy link

Hi,

I don't understand what's stopping .toPromise() to try to use the default Promise constructor if none is passed as argument?
I really think this should be the default behavior.

@vqvu
Copy link
Collaborator

vqvu commented May 11, 2018 via email

@kirly-af
Copy link
Author

Hi @vqvu, sorry for the late reply.

I understand you avoid default arguments values, though is it still a problem to depend on Promise nowadays? It's standard, widely used and available in most environments.

@vqvu
Copy link
Collaborator

vqvu commented May 23, 2018 via email

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

No branches or pull requests

2 participants