The most idiotic use of ES6 generators ever