You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varconvert=require('koa-convert');// legacy middleware has `this` as context, and first argument as `next` generatorfunction*myGen(next){console.log(this.x);}varconvertedGen=convert(myGen);// modern middleware has first argument as context, and second argument as `next` functionconvertedGen({x: 666},functionnext(){});
First off, I do not know if this belongs here in this module, but I'll start here. I'm experimenting with the following code:
I can't seem to pass an argument to the generator function. If this isn't to do with
koa-convert
then I'm guessinggenerator-bind
is at fault.The text was updated successfully, but these errors were encountered: