Bug 1184922 - Part 1.1: Update existing test to follow the change in array destructuring with completed iterator. r=shu

This commit is contained in:
Tooru Fujisawa 2016-09-27 13:57:00 +09:00
parent 7cff6189b8
commit d6fa063f88

View File

@ -39,10 +39,10 @@ function assertIterable(expectCalls, fn, expectResult) {
assertIterable([1,1,1,1],
it => { var [a] = it; return [a]; },
[1]);
assertIterable([3,3,1,1],
assertIterable([2,2,1,1],
it => { var [a,b,c] = it; return [a,b,c]; },
[1,undefined,undefined]);
assertIterable([3,3,1,1],
assertIterable([2,2,1,1],
it => { var [a,b,...rest] = it; return [a,b,...rest]; },
[1,undefined]);
assertIterable([5,5,4,4],