repl icon indicating copy to clipboard operation
repl copied to clipboard

RegeneratorRuntime is not defined

Open syaiful6 opened this issue 8 years ago • 1 comments

when i try to write a generator function in Repl, i get Error telling me that RegeneratorRuntime is not defined. Try it here: https://goo.gl/pwSSDJ

i think if the repl not include RegeneratorRuntime code, then the best thing to do is just leave the generator function as-is, ie don't transpile it to RegeneratorRuntime.

syaiful6 avatar Oct 27 '16 01:10 syaiful6

Oh, good catch - I suppose we could do something like feature detect for the availability of generators and conditionally load the RegeneratorRuntime.

craigdallimore avatar Oct 28 '16 18:10 craigdallimore