Lines Matching refs:iter

10   var iter = s.values();
11 assertEquals('Set Iterator', %_ClassOf(iter));
13 var SetIteratorPrototype = iter.__proto__;
24 Object.prototype.toString.call(iter));
39 var iter = s.values();
41 assertEquals({value: 1, done: false}, iter.next());
42 assertEquals({value: 2, done: false}, iter.next());
43 assertEquals({value: 3, done: false}, iter.next());
44 assertEquals({value: undefined, done: true}, iter.next());
45 assertEquals({value: undefined, done: true}, iter.next());
59 var iter = s.entries();
61 assertEquals({value: [1, 1], done: false}, iter.next());
62 assertEquals({value: [2, 2], done: false}, iter.next());
63 assertEquals({value: [3, 3], done: false}, iter.next());
64 assertEquals({value: undefined, done: true}, iter.next());
65 assertEquals({value: undefined, done: true}, iter.next());
72 var iter = s.values();
73 assertEquals({value: 1, done: false}, iter.next());
78 assertEquals({value: 2, done: false}, iter.next());
80 assertEquals({value: 4, done: false}, iter.next());
82 assertEquals({value: undefined, done: true}, iter.next());
84 assertEquals({value: undefined, done: true}, iter.next());
99 var iter = new Set().values();
101 iter.next.call({});
111 var iter = new Set().values();
112 assertEquals(iter, iter[Symbol.iterator]());
113 assertEquals(iter[Symbol.iterator].name, '[Symbol.iterator]');
119 var iter = m.values();
120 assertEquals('Map Iterator', %_ClassOf(iter));
122 var MapIteratorPrototype = iter.__proto__;
134 Object.prototype.toString.call(iter));
149 var iter = m.values();
151 assertEquals({value: 11, done: false}, iter.next());
152 assertEquals({value: 22, done: false}, iter.next());
153 assertEquals({value: 33, done: false}, iter.next());
154 assertEquals({value: undefined, done: true}, iter.next());
155 assertEquals({value: undefined, done: true}, iter.next());
164 var iter = m.keys();
166 assertEquals({value: 1, done: false}, iter.next());
167 assertEquals({value: 2, done: false}, iter.next());
168 assertEquals({value: 3, done: false}, iter.next());
169 assertEquals({value: undefined, done: true}, iter.next());
170 assertEquals({value: undefined, done: true}, iter.next());
179 var iter = m.entries();
181 assertEquals({value: [1, 11], done: false}, iter.next());
182 assertEquals({value: [2, 22], done: false}, iter.next());
183 assertEquals({value: [3, 33], done: false}, iter.next());
184 assertEquals({value: undefined, done: true}, iter.next());
185 assertEquals({value: undefined, done: true}, iter.next());
203 var iter = new Map().values();
205 iter.next.call({});
215 var iter = new Map().values();
216 assertEquals(iter, iter[Symbol.iterator]());
217 assertEquals(iter[Symbol.iterator].name, '[Symbol.iterator]');