summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/class/checkreturn-catch-return-finally-super-arrow.js
blob: 4a9d22955a79828e38940f99a60b357ed2af5b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class C extends class {} {
  constructor() {
    var f = () => super();

    try {
      throw null;
    } catch {
      return;
    } finally {
      f();
    }
  }
}

function test() {
  for (var i = 0; i < 100; ++i) {
    // No error.
    new C();
  }
}

test();