1 2 3 4 5 6 7
x = [0, 1, 1, 0, 1, 1]; y = -1; sum = 0; for (var j = 0; j < x.length; ++j) { sum = sum + (x[j] ? 0 : (y >>> 0)) | 0; } assertEq(sum, -2);