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
Up to this point, td.js has never had support for ES generator functions. This is a pretty large language feature, so I'm immediately intimidated of approaching it to naively. I'm not even sure yet how a generator user would want it to work.
I've been reading a little bit from activity on our sinon friends repo, and found this fork, which (I think) proposes simply wrapping a normal fake function in a generator, presumably so next() and yield * can be used, even if it just keeps returning whatever it's been stubbed to.
The text was updated successfully, but these errors were encountered:
Up to this point, td.js has never had support for ES generator functions. This is a pretty large language feature, so I'm immediately intimidated of approaching it to naively. I'm not even sure yet how a generator user would want it to work.
I've been reading a little bit from activity on our sinon friends repo, and found this fork, which (I think) proposes simply wrapping a normal fake function in a generator, presumably so
next()
andyield *
can be used, even if it just keeps returning whatever it's been stubbed to.The text was updated successfully, but these errors were encountered: