Ben Newman
Ben Newman
I have a draft PR up that is very close to restoring those tests: https://github.com/benjamn/ast-types/pull/886
Please see [the versions tab](https://www.npmjs.com/package/ast-types?activeTab=versions) for other more recent versions that I've published to npm. You can directly install any of the other versions you want (for example, `npm i...
At a superficial level, async `read` functions are not possible because the `cache.read{Query,Fragment}` methods are synchronous, so everything involved in reading a query from the cache must also be synchronous....
The short answer is that `with` blocks are [not supported](https://github.com/facebook/regenerator/blob/a0fb45fe4060ea93dec7cb93e664114e4e2cdacf/lib/emit.js#L677-L679) by the transpiler, because the implementation was complicated to impossible, and hardly anyone uses `with` blocks. I decided to wait...
And it looks like Traceur throws up its hands, too, on the technicality that "Strict mode code may not contain a with statement": [demo](https://google.github.io/traceur-compiler/demo/repl.html#function%20*foo%28%29%20%7B%0A%20%20with%20%28yield%29%20%7B%0A%20%20%20%20return%20x%3B%0A%20%20%7D%0A%7D).
Ok here's a quick sketch of how I could conceive of this working. First of all, it's tempting to simulate multiple nested `with` statements with just one `with` statement, by...
:+1: to this!
@Jack-Works What do you think about this alternate approach? https://github.com/facebook/regenerator/issues/378#issuecomment-764878050
I've been thinking in this direction lately too. It would be great, in particular, if `gnode` (or some general tool similar to `gnode`) kept a disk cache of previously compiled...
I've been meaning to update https://www.npmjs.com/package/es7-async-await to behave more like Regenerator (i.e. do everything but transpile generators). That transform will still create a GeneratorFunction for each async function call, though,...