17:08 | <Andreu Botella> | Hey, I have a PR for generator support: https://github.com/tc39/proposal-async-context/pull/61 |
17:08 | <Andreu Botella> | it'd be good to get a thorough review from someone who understands execution contexts and generators more than me, to make sure I haven't missed anything |
17:09 | <Andreu Botella> | but I think this is enough to have the behavior of restoring the context at initialization |
17:10 | <Andreu Botella> | or rather, to restore the initialization context the first time the generator is resumed, and then on every yield store the current context to restore that next time |
17:10 | <Andreu Botella> | although that isn't really needed now that I think about it, since you can't yield the generator inside a callback run within it, or modify the snapshot within a function stack frame |
17:12 | <Andreu Botella> | I guess I can get rid of the snapshotting on yield then |