Skip to content
Permalink
879c3735b0
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
32 lines (30 sloc) 1.2 KB
/*expected
initial->s1_1->s1_3->s1_4->s1_2->s1_5->s1_2;
s1_3->s1_7->s1_8;
s1_4->s1_6->s1_7;
s1_5->s1_6->s1_8->final;
*/
try {
for (let x of obj.xs) {
}
} catch (err) {
}
/*DOT
digraph {
node[shape=box,style="rounded,filled",fillcolor=white];
initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
s1_1[label="Program\nTryStatement\nBlockStatement\nForOfStatement"];
s1_3[label="MemberExpression\nIdentifier (obj)\nIdentifier:exit (obj)"];
s1_4[label="Identifier (xs)\nIdentifier:exit (xs)\nMemberExpression:exit"];
s1_2[label="VariableDeclaration\nVariableDeclarator\nIdentifier (x)\nIdentifier:exit (x)\nVariableDeclarator:exit\nVariableDeclaration:exit"];
s1_5[label="BlockStatement\nBlockStatement:exit"];
s1_7[label="CatchClause\nIdentifier (err)\nBlockStatement\nIdentifier:exit (err)\nBlockStatement:exit\nCatchClause:exit"];
s1_8[label="TryStatement:exit\nProgram:exit"];
s1_6[label="ForOfStatement:exit\nBlockStatement:exit"];
initial->s1_1->s1_3->s1_4->s1_2->s1_5->s1_2;
s1_3->s1_7->s1_8;
s1_4->s1_6->s1_7;
s1_5->s1_6->s1_8->final;
}
*/