diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/parallel/bailout-executed.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/parallel/bailout-executed.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,23 @@ +load(libdir + "parallelarray-helpers.js"); + +function makeObject(e, i, c) { + var v = {element: e, index: i, collection: c}; + + if (e == 0) // note: happens once + delete v.index; + + return v; +} + +function test() { + var array = range(0, 768); + var array1 = array.map(makeObject); + + assertParallelExecWillRecover(function (m) { + var pa = array.mapPar(makeObject, m); + assertStructuralEq(pa, array1); + }); +} + +if (getBuildConfiguration().parallelJS) + test();