js/src/jit-test/tests/parallel/write-illegal-obj.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/write-illegal-obj.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +load(libdir + "parallelarray-helpers.js");
     1.5 +
     1.6 +function buildSimple() {
     1.7 +
     1.8 +  let obj = { x: 1, y: 2, z: 3 };
     1.9 +
    1.10 +  assertParallelExecWillBail(function(m) {
    1.11 +    Array.buildPar(minItemsTestingThreshold, function(i) {
    1.12 +        obj.x += 1;
    1.13 +        obj.y += 1;
    1.14 +        obj.z += 1;
    1.15 +        return obj;
    1.16 +    }, m);
    1.17 +  });
    1.18 +
    1.19 +}
    1.20 +
    1.21 +if (getBuildConfiguration().parallelJS)
    1.22 +  buildSimple();

mercurial