Error-Type Specific try/catch Blocks

Claude Pache claude.pache at gmail.com
Fri May 13 15:26:45 UTC 2016


Note that SpiderMonkey has already nonstandard conditional catch clauses:

```js
try {
    // ...
}
catch (e if e instanceof TypeError) {
    // ....
}
```

—Claude


> Le 13 mai 2016 à 17:06, Joseph Groseclose <jgrosecl49 at gmail.com> a écrit :
> 
> I sent this proposal via http://www.ecma-international.org/memento/contribute_TC39_Royalty_Free_Task_Group.php# <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 <https://github.com/benderTheCrime/error-type-specific-catch-proposal>
> 
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160513/e8e5d09c/attachment.html>


More information about the es-discuss mailing list