Error-Type Specific try/catch Blocks

Boris Zbarsky bzbarsky at
Fri May 13 16:57:17 UTC 2016

On 5/13/16 11:06 AM, Joseph Groseclose wrote:
> I sent this proposal via
> yesterday evening. Sharing it here now:

I'd like to understand the proposed semantics better, to see what's 
actually being proposed and how it interacts with a world in which 
multiple globals exist.

Given this:

   try {
   } catch MyError (e) {
     // when do I reach here?

when does control enter the catch block, exactly?  Is it when "e 
instanceof MyError"?  Is it when " =="?  Something else?


More information about the es-discuss mailing list