On 5/13/16 11:06 AM, Joseph Groseclose wrote:
I sent this proposal via
http://www.ecma-international.org/memento/contribute_TC39_Royalty_Free_Task_Group.php#
yesterday evening. Sharing it here now:
https://github.com/benderTheCrime/error-type-specific-catch-proposal
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 {
something();
} 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 "e.name == MyError.name"? Something else?
-Boris
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss