michael@0: // |jit-test| error: is undefined michael@0: michael@0: load(libdir + "iteration.js"); michael@0: michael@0: function iterable() { michael@0: var iterable = {}; michael@0: iterable[std_iterator] = () => ({next: () => void 0}); michael@0: return iterable; michael@0: } michael@0: michael@0: (function*(){yield*iterable()}()).next();