Make .toPromise attempt to use default Promise constructor
Open
- Dominant language
- JavaScript
- Stars
- 3.4k
- Forks
- 145
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Research direction
Locate the .toPromise implementation and inspect how it handles a missing Promise constructor. Check the surrounding API behavior and existing tests, then verify that omitting the argument uses the default Promise constructor without changing explicit-constructor behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100