michael@0: load(libdir + "parallelarray-helpers.js"); michael@0: michael@0: function test() { michael@0: // Test what happens if the length of the array is very short (i.e., michael@0: // less than the number of cores). There used to be a bug in this michael@0: // case that led to crashes or other undefined behavior. michael@0: var makeadd1 = function (v) { return [v]; } michael@0: assertArraySeqParResultsEq(range(1, 3), "map", makeadd1); michael@0: } michael@0: michael@0: if (getBuildConfiguration().parallelJS) michael@0: test();