michael@0: // |jit-test| slow; michael@0: michael@0: load(libdir + "parallelarray-helpers.js") michael@0: michael@0: function buildComprehension() { michael@0: var pa1 = Array.buildPar(256, function (idx) { return idx; }); michael@0: for (var i = 0; i < 20000; i++) { michael@0: print(i); michael@0: buildAndCompare(); michael@0: } michael@0: michael@0: function buildAndCompare() { michael@0: // this will be ion-generated: michael@0: var pa2 = Array.buildPar(256, function (idx) { return idx; }); michael@0: assertStructuralEq(pa1, pa2); michael@0: } michael@0: } michael@0: michael@0: if (getBuildConfiguration().parallelJS) michael@0: buildComprehension();