regenerator icon indicating copy to clipboard operation
regenerator copied to clipboard

Source transformer enabling ECMAScript 6 generator functions in JavaScript-of-today.

Results 80 regenerator issues
Sort by recently updated
recently updated
newest added

Original issue submitted by @mgroenhoff in https://github.com/babel/babel/issues/9019 ## Bug Report **Current Behavior** The state machine produced by `@babel/plugin-transform-regenerator` is incorrect and *can* produce an infinite loop using nested try/catch/finally statements...

Original issue submitted by @quasicomputational in https://github.com/babel/babel/issues/9535 ## Bug Report **Current Behavior** Only the first `await yield*` is run, with the `combiner` function exiting immediately after it completes. When run...

Hey, I'm having a weird error in regenerator lib on compiling async/await with rollup and babel. Looks like rollup missed something. Error in terminal: ``` module.js:471 throw err; ^ Error:...

The following code ```js let answer = async () => 42; (async () => console.log(`Answer is ${await answer()}`))() ``` gives the following error: ``` Error: index.js: unknown Expression of type...

I've found that if I just use regenerator and **not** the babel classes transform, then the following code transforms to code that raises a ReferenceError: ``` const computedName = "computedFn";...

I'm using AVA to test my node modules, transpiling them on the go with babel-register. Until recently, everything worked fine, but now the tests won't run, with the following error:...

The best place to implement source map support is probably in https://github.com/benjamn/recast, which is a dependency, but I wanted to have an issue here so that people know source maps...

enhancement

As in, the following should hold when transpiled: ```js var runtime = require("regenerator-runtime") async function *foo() {} var fooPrototype = foo.prototype var asyncGeneratorPrototype = Object.getPrototypeOf(fooPrototype) var asyncIteratorPrototype = Object.getPrototypeOf(asyncGeneratorPrototype) assert.equal(asyncGeneratorPrototype,...

They currently always get transpiled due to the Babel plugin that's required to make them work. c.f.: https://github.com/facebook/regenerator/issues/230#issuecomment-268355691

The following code does not transform as expected: **input** ``` js ////some randon comment with the word async for (const i of [1,2,3]) { } ``` **output** ``` js for...