1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/parallel/throw-executed.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +load(libdir + "parallelarray-helpers.js"); 1.5 + 1.6 +function test() { 1.7 + var x = new Error(); 1.8 + function inc(n) { 1.9 + if (inParallelSection()) // wait until par execution, then throw 1.10 + throw x; 1.11 + return n + 1; 1.12 + } 1.13 + var x = range(0, 2048); 1.14 + 1.15 + assertParallelExecWillBail( 1.16 + m => x.mapPar(inc, m)); 1.17 +} 1.18 + 1.19 +if (getBuildConfiguration().parallelJS) test(); 1.20 +