Lines Matching refs:iter

10   var iter = s.values();
11 assertEquals('Set Iterator', %_ClassOf(iter));
13 var SetIteratorPrototype = iter.__proto__;
30 var iter = s.values();
32 assertEquals({value: 1, done: false}, iter.next());
33 assertEquals({value: 2, done: false}, iter.next());
34 assertEquals({value: 3, done: false}, iter.next());
35 assertEquals({value: undefined, done: true}, iter.next());
36 assertEquals({value: undefined, done: true}, iter.next());
50 var iter = s.entries();
52 assertEquals({value: [1, 1], done: false}, iter.next());
53 assertEquals({value: [2, 2], done: false}, iter.next());
54 assertEquals({value: [3, 3], done: false}, iter.next());
55 assertEquals({value: undefined, done: true}, iter.next());
56 assertEquals({value: undefined, done: true}, iter.next());
63 var iter = s.values();
64 assertEquals({value: 1, done: false}, iter.next());
69 assertEquals({value: 2, done: false}, iter.next());
71 assertEquals({value: 4, done: false}, iter.next());
73 assertEquals({value: undefined, done: true}, iter.next());
75 assertEquals({value: undefined, done: true}, iter.next());
90 var iter = new Set().values();
92 iter.next.call({});
102 var iter = new Set().values();
103 assertEquals(iter, iter[Symbol.iterator]());
104 assertEquals(iter[Symbol.iterator].name, '[Symbol.iterator]');
110 var iter = m.values();
111 assertEquals('Map Iterator', %_ClassOf(iter));
113 var MapIteratorPrototype = iter.__proto__;
131 var iter = m.values();
133 assertEquals({value: 11, done: false}, iter.next());
134 assertEquals({value: 22, done: false}, iter.next());
135 assertEquals({value: 33, done: false}, iter.next());
136 assertEquals({value: undefined, done: true}, iter.next());
137 assertEquals({value: undefined, done: true}, iter.next());
146 var iter = m.keys();
148 assertEquals({value: 1, done: false}, iter.next());
149 assertEquals({value: 2, done: false}, iter.next());
150 assertEquals({value: 3, done: false}, iter.next());
151 assertEquals({value: undefined, done: true}, iter.next());
152 assertEquals({value: undefined, done: true}, iter.next());
161 var iter = m.entries();
163 assertEquals({value: [1, 11], done: false}, iter.next());
164 assertEquals({value: [2, 22], done: false}, iter.next());
165 assertEquals({value: [3, 33], done: false}, iter.next());
166 assertEquals({value: undefined, done: true}, iter.next());
167 assertEquals({value: undefined, done: true}, iter.next());
185 var iter = new Map().values();
187 iter.next.call({});
197 var iter = new Map().values();
198 assertEquals(iter, iter[Symbol.iterator]());
199 assertEquals(iter[Symbol.iterator].name, '[Symbol.iterator]');