Backed out changeset bab9914e9a31 (bug 853576) for SM rootanalysis orange on a CLOSED TREE.

This commit is contained in:
Ryan VanderMeulen 2013-03-27 22:27:37 -04:00
parent fe282cbdab
commit 28b70be053
2 changed files with 1 additions and 7 deletions

View File

@ -953,7 +953,7 @@ function ParallelArrayScatter(targets, defaultValue, conflictFunc, length, mode)
if ((t | 0) !== t)
ThrowError(JSMSG_PAR_ARRAY_SCATTER_BAD_TARGET, i);
if (t < 0 || t >= length)
if (t >= length)
ThrowError(JSMSG_PAR_ARRAY_SCATTER_BOUNDS);
}
}

View File

@ -1,6 +0,0 @@
var len = 2;
function add1(x) { return x+1; }
var p = new ParallelArray(len, add1);
var idx = [0,0].concat(build(len-4, add1)).concat([len-3,len-3]);
var revidx = idx.reverse();
var r = p.scatter(revidx, 0, function (x,y) { return x+y; }, len-2, {});