env.MY_CERT.fetch around (like to a third-party library), it will throw a TypeError: Illegal invocation when yielded unless you manually .bind it to the env.MY_CERT context. I don't know if this is specific to being used within a generator or if it does it on await too.yield.options.fetcher = env.MY_CERT.fetch.bind(env.MY_CERT)