Implement ES6 generators.