js/src/jit-test/tests/ion/bug799185-7.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/ion/bug799185-7.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,73 @@
     1.4 +var y = undefined;
     1.5 +
     1.6 +try {} catch (x) {
     1.7 +    try {} catch (x) {
     1.8 +        try {} catch (x) {
     1.9 +        }
    1.10 +    }
    1.11 +}
    1.12 +
    1.13 +try {} catch (x if y) {
    1.14 +    try {} catch (x if y) {
    1.15 +        try {} catch (x if y) {
    1.16 +        }
    1.17 +    }
    1.18 +}
    1.19 +
    1.20 +while (false) {
    1.21 +    try {} catch ({x,y} if x) {
    1.22 +        try {} catch ({a,b,c,d} if a) {
    1.23 +            if (b) break;
    1.24 +            if (c) continue;
    1.25 +        }
    1.26 +    } finally {}
    1.27 +}
    1.28 +
    1.29 +Label1:
    1.30 +for (let foo = 0; foo < 0; foo++) {
    1.31 +    Label2:
    1.32 +    for (let bar = 0; bar < 0; bar++) {
    1.33 +        if (foo) {
    1.34 +            if (bar)
    1.35 +                break Label2;
    1.36 +            continue Label2;
    1.37 +        } else {
    1.38 +            if (bar)
    1.39 +                break Label1;
    1.40 +            continue Label1;
    1.41 +        }
    1.42 +    }
    1.43 +}
    1.44 +
    1.45 +Label3:
    1.46 +for (let foo = 0; foo < 0; foo++) {
    1.47 +    Label4:
    1.48 +    for (let bar = 0; bar < 0; bar++) {
    1.49 +        if (foo) {
    1.50 +            if (bar)
    1.51 +                continue Label4;
    1.52 +            break Label4;
    1.53 +        } else {
    1.54 +            if (bar)
    1.55 +                continue Label3;
    1.56 +            break Label3;
    1.57 +        }
    1.58 +    }
    1.59 +}
    1.60 +
    1.61 +switch (42) {
    1.62 +default:
    1.63 +    try {} catch (x) {
    1.64 +        if (x + 1) {
    1.65 +            if (x)
    1.66 +                break;
    1.67 +            break;
    1.68 +        }
    1.69 +    }
    1.70 +    break;
    1.71 +}
    1.72 +
    1.73 +try {
    1.74 +    null.x;
    1.75 +} catch (x) {
    1.76 +}

mercurial