js/src/jit-test/tests/ion/bug958432.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/bug958432.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +function h(i, i) {
     1.5 +    i = ([Infinity([])])(1 ? l : arguments)
     1.6 +}
     1.7 +for (var j = 0; j < 2; ++j) {
     1.8 +    try {
     1.9 +        h(-Number, -Number)
    1.10 +    } catch (e) {}
    1.11 +}
    1.12 +
    1.13 +function f() {
    1.14 +    function f(i0, i1) {
    1.15 +        i0 = i0 | 0;
    1.16 +        i = i1 | 0;
    1.17 +        switch (1) {
    1.18 +            case -3:
    1.19 +                switch (f) {}
    1.20 +        } {
    1.21 +            return 0
    1.22 +        }(arguments)
    1.23 +    }
    1.24 +    return f
    1.25 +};
    1.26 +for (var j = 0; j < 5; ++j) {
    1.27 +    (function(x) {
    1.28 +        f()(f()(x, f()()))
    1.29 +    })()
    1.30 +}

mercurial