1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/parallel/write-obj.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +load(libdir + "parallelarray-helpers.js"); 1.5 + 1.6 +function buildSimple() { 1.7 + assertParallelModesCommute(["seq", "par"], function(m) { 1.8 + Array.buildPar(256, function(i) { 1.9 + let obj = { x: i, y: i + 1, z: i + 2 }; 1.10 + obj.x += 1; 1.11 + obj.y += 1; 1.12 + obj.z += 1; 1.13 + return obj; 1.14 + }, m); 1.15 + }); 1.16 +} 1.17 + 1.18 +if (getBuildConfiguration().parallelJS) 1.19 + buildSimple();