js/src/jit-test/tests/parallel/bug983558.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/parallel/bug983558.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +if (!getBuildConfiguration().parallelJS)
     1.5 +  quit(0);
     1.6 +
     1.7 +x = [];
     1.8 +Array.prototype.push.call(x, 2);
     1.9 +y = x.mapPar(function() {});
    1.10 +Object.defineProperty(y, 3, {
    1.11 +    get: (function() {
    1.12 +        try {
    1.13 +            Int8Array(y);
    1.14 +            x.reducePar(function() {});
    1.15 +        } catch (e) { print(e); }
    1.16 +    })
    1.17 +});
    1.18 +y + '';

mercurial