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

The following code does not transform as expected: ```js function *range(max, step) { var count = 0; step = step || 1; for (var i = 0; i < max;...

Expected type "Expression" with option undefined, but instead got "SpreadElement

This PR 1. Adds [harden-runner](https://github.com/step-security/harden-runner) GitHub Action to the workflow. 2. Sets the token permission for the workflow to `contents: read`. This is a security best practice and gets you...

CLA Signed

This fixes #302 @benjamn So Im mostly done when it comes to refactoring `regenerator-runtime`. The missing piece is to change `regenerator-transform` so it adds an import statement to the `regenerator-runtime`...

CLA Signed

I'm using modern-web's [polyfill-loader](https://github.com/modernweb-dev/web/blob/master/packages/polyfills-loader/package.json) to publish a few polyfills with my application. This polyfill-loader uses `regenerator-runtime` as a dependency. But I notice that this package is published in an unminified...

Use well-known global names if possible

CLA Signed

Context: https://github.com/babel/babel/issues/10808 Transform the following snippet with only `regenerator-transform` ```js async (req) => { const { params } = req; } ``` will throw ``` TypeError: /src.js: Property name expected...

CLA Signed

runtime.js line 47 seams you can not get away with it. Swallows some exceptions in async function in my code.

When using both, it seemed that the `async methods` in _createClass output lose the origin names, compared to the other non-async functions: ![image](https://user-images.githubusercontent.com/14831358/144771756-2a6760cc-9145-4434-b38d-79fceca9a86b.png) I found this was troublesome in some...

element-f-b-s-aj-ax9-k-s8.quipelements.com/-/element/resource/fBSAjAx9KS8/13/dist/app.js:22 Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at Object.Ko (element-f-b-s-aj-ax9-k-s8.quipelements.com/-/element/resource/fBSAjAx9KS8/13/dist/app.js:22) at t.useState...