I have a helper constructor that uses a yield statement:
var co = require('co');
var Helper = co(function* () {
    var response = yield foo();
})
module.exports.Helper = Helper;
I would like to instantiate it:
var Helper = require('./helper.js').Helper;
var helper = new yield Helper();  // TypeError
But I get the following error:  TypeError: You may only yield a function, promise, generator, array, or object, but the following was passed: "[object Object]".
Any ideas on how to instantiate it correctly?
Edit
Removed references to koa, because I'm using co (as pointed out by vanthome).
 
    