Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
1 load(libdir + "parallelarray-helpers.js");
3 function testMap() {
4 var p = range(0, minItemsTestingThreshold);
5 var v = [1];
6 var func = function (e) {
7 v[0] = e;
8 return 0;
9 };
11 // this will compile, but fail at runtime
12 assertParallelExecWillBail(m => p.mapPar(func, m));
13 }
15 if (getBuildConfiguration().parallelJS)
16 testMap();