Istanbul: Feature request: /* istanbul ignore catch */

Created on 9 Nov 2016  路  4Comments  路  Source: gotwarlost/istanbul

We can direct the tracker to ignore if and else branches. Great.

But these are not the only branch paths.
We need similar switches for try{} catch(e) {} finally {} which count as branch paths.

Basically, the finally block always happens. Statements in it can be handled with /* istanbul ignore next */
The same can be said about the try block.

However - the catch block is conditional - it's not sure to happen, just like the else block.
We need a switch for that.

Thoughts?

Most helpful comment

mmm! I'm alive :)
any input from the repo-owner?
@gotwarlost - would you like a PR? I can try help if we could agree on a direction

All 4 comments

is there any way to do this yet?

I just bumped into this too.

+1

mmm! I'm alive :)
any input from the repo-owner?
@gotwarlost - would you like a PR? I can try help if we could agree on a direction

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mbielski picture mbielski  路  37Comments

jasonpincin picture jasonpincin  路  22Comments

jonathanong picture jonathanong  路  18Comments

asciidisco picture asciidisco  路  47Comments

lizhexia picture lizhexia  路  60Comments