W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

Another case of wanting to a test like isArray, this time on exceptions

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 02 Sep 2013 21:49:55 -0400
Message-ID: <52254043.7040403@mit.edu>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
CC: dteller@mozilla.com
I feel like a broken record, but...

https://bugzilla.mozilla.org/show_bug.cgi?id=911799 has a use case for 
detecting what sort of exception you have: TypeError, StopIteration, or 
whatnot.  Doing this when the exception was thrown in code running in a 
different global is not really possible right now, right?

We may want some sort of mechanism on exceptions to ask them what sorts 
of exceptions they are.

-Boris
Received on Tuesday, 3 September 2013 01:50:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC