js/src/jit-test/tests/basic/terminate.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/basic/terminate.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +// |jit-test| exitstatus: 3
     1.5 +try {
     1.6 +    terminate();
     1.7 +    assertEq("execution continued", "execution should not continue");
     1.8 +} catch (x) {
     1.9 +    assertEq("caught exception", "uncatchable");
    1.10 +} finally {
    1.11 +    assertEq("'finally' clause ran", "'finally' clause should not run");
    1.12 +}
    1.13 +assertEq("top-level execution continued", "top-level execution should not continue");

mercurial