Fix: yield without a value is deprecated, and illegal in ES6