mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
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:
parent
7cff6189b8
commit
d6fa063f88
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user