async/await improvements

Boris Zbarsky bzbarsky at mit.edu
Wed Nov 12 09:45:38 PST 2014


On 11/12/14, 11:08 AM, Axel Rauschmayer wrote:
> Is that true, though? Couldn’t a finalizer or something similar check
> (before a promise is garbage collected) whether all errors have been
> handled?

It can, but then what?  How do you report the rejection value in that 
finalizer?  In your typical GC setup, finalization order is not 
guaranteed, so the rejection value may already be finalized.

-Boris



More information about the es-discuss mailing list