Lines Matching defs:iterator
183 nullIterator[Symbol.iterator] = null;
188 nonObjIterator[Symbol.iterator] = function() { return "nonObject"; };
204 // Ensure iterator is only accessed once, and only invoked once
209 // Test order --- only get iterator method once
211 assert(called !== "@@iterator should be called only once");
214 return arr[Symbol.iterator]();
217 Object.defineProperty(obj, Symbol.iterator, {
219 assert(getCalled !== "@@iterator should be accessed only once");
224 // "@@iterator should not be set"
267 items[Symbol.iterator] = 7;
292 /* Test iterator close */
295 if (typeof Symbol !== 'function' || !Symbol.iterator) {
299 var iterator = {
307 iterable[Symbol.iterator] = function () { return iterator; };