On Wed, Nov 12, 2014 at 5:56 PM, Tab Atkins Jr. <[email protected]> wrote: > It's impossible to rethrow errors without use of "await" - the error > may happen in a different turn entirely than the function call. You > *must* convert your calling function into an async one, so that it can > do the "freeze and wait for the promise to resolve" thing, which means > that it needs to return a promise for itself as well. > > ~TJ
The crucial different from what you're describing (not directly in the paragraph above) is that you say propagate by default, and I say throw by default (and a real throw, like uncaught exception in the debugger type throw). The latter imposes way less constraints on the GC and less ambiguity of error handling, at the cost of slightly more verbose async handling. I was hoping async/await may be a chance to look at this, but it sounds like we're far down the road of promises for it to be an option. _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

