]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/code-path-analysis/try--try-finally-3.js
first commit
[pve-eslint.git] / eslint / tests / fixtures / code-path-analysis / try--try-finally-3.js
1 /*expected
2 initial->s1_1->s1_2->s1_3->s1_4;
3 s1_1->s1_5;
4 s1_2->s1_5;
5 s1_3->s1_5->thrown;
6 */
7
8 try {
9 throw err;
10 } finally {
11 bar();
12 }
13
14 last();
15
16 /*DOT
17 digraph {
18 node[shape=box,style="rounded,filled",fillcolor=white];
19 initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
20 thrown[label="✘",shape=circle,width=0.3,height=0.3,fixedsize];
21 s1_1[label="Program\nTryStatement\nBlockStatement\nThrowStatement\nIdentifier (err)"];
22 s1_2[label="ThrowStatement:exit"];
23 s1_3[style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\nBlockStatement:exit"];
24 s1_4[style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\nBlockStatement\nExpressionStatement\nCallExpression\nIdentifier (bar)\nExpressionStatement\nCallExpression\nIdentifier (last)"];
25 s1_5[label="BlockStatement\nExpressionStatement\nCallExpression\nIdentifier (bar)"];
26 initial->s1_1->s1_2->s1_3->s1_4;
27 s1_1->s1_5;
28 s1_2->s1_5;
29 s1_3->s1_5->thrown;
30 }
31 */