summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/terminate.js
blob: f2966d783aae5f4d1d31ecf7a13f5c9d7c6f8d26 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| exitstatus: 3
try {
    terminate();
    assertEq("execution continued", "execution should not continue");
} catch (x) {
    assertEq("caught exception", "uncatchable");
} finally {
    assertEq("'finally' clause ran", "'finally' clause should not run");
}
assertEq("top-level execution continued", "top-level execution should not continue");