Re: throw vs promise reject

On 9/17/18 6:44 AM, Guru Partap Khalsa wrote:
> What is the reasoning for XMLHttpRequest to "throw" rather than 
> rejecting a promise?

The API predates promises.  If you want a Promise-based fetching API, 
you should use fetch().

-Boris

Received on Monday, 17 September 2018 21:43:29 UTC