Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | // |jit-test| error: Error; |
michael@0 | 2 | |
michael@0 | 3 | var len = 2; |
michael@0 | 4 | function add1(x) { return x+1; } |
michael@0 | 5 | var p = new ParallelArray(len, add1); |
michael@0 | 6 | var idx = [0,0].concat(build(len-4, add1)).concat([len-3,len-3]); |
michael@0 | 7 | var revidx = idx.reverse(); |
michael@0 | 8 | var r = p.scatter(revidx, 0, function (x,y) { return x+y; }, len-2, {}); |