Ticket #1903: test.winxed

File test.winxed, 314 bytes (added by plobsing, 4 years ago)

Winxed test file demonstrating the issue.

Line 
1class A {
2  function a() {
3    say("a");
4    throw Error("erra");
5    return 0;
6  }
7}
8
9function b() {
10  say("b");
11  throw Error("errb");
12  return 0;
13}
14
15function main[main] (var argv) {
16  try {
17    if (argv[1])
18      return (new A).a();
19    else
20      return b();
21  } catch (e) {
22    say("caught exception");
23  }
24}