blob: 1a51a6af1289e6128ca520bbac0ad358046c9256 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
var count = 0;
function f() {
try {
try {
try {
count += 2;
} finally {
count += 3;
throw 3;
}
} catch(e) {
count += 4;
throw 4;
}
} finally {
count += 5;
try {
count += 6;
} catch(e) {
count += 7;
throw 123;
} finally {
count += 8;
}
count += 9;
}
count += 10;
}
for (var i=0; i<3; i++) {
try {
f();
assertEq(0, 1);
} catch(e) {
assertEq(e, 4);
}
}
assertEq(count, 111);
|