W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2018

Re: throw vs promise reject

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Thu, 20 Sep 2018 14:57:17 -0400
To: public-webapps@w3.org
Message-ID: <3abd69ed-9ebd-f121-e43b-6bf86250abf9@mit.edu>
On 9/20/18 2:45 PM, Tab Atkins Jr. wrote:
> Tangential to what Boris just said, note that all promises rejected by
> the platform get rejected with an Error, so you still get a stack
> trace either way. ^_^

Sort of.   A bunch of them get rejected with a DOMException instead. 
That said, those have a stack as well, in browsers though not in the spec.

Received on Thursday, 20 September 2018 18:57:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:15:15 UTC