News for hackers. Stuff that matters.
Re:Cancelable Promises: Why was this proposal withdrawn? by TheAceOfHearts on Monday December 19, 2016 @02:47PM (#13214415)
Yeah, I never said otherwise. I had jQuery.ajax [0] in mind when writing that. If I recall correctly, it rejects the promise when you get a 4XX. I haven't used it since a few years now, but I still see people handling responses incorrectly with other wrapper libs.

[0] https://api.jquery.com/jquery.ajax/

Re:Cancelable Promises: Why was this proposal withdrawn? by paulddraper on Monday December 19, 2016 @04:59PM (#13215350)
Sorry, meant to reply to parent....

But yeah...one of the several reasons I much prefer Fetch API/polyfill to $.ajax.