ramda / repl

The Ramda REPL
34 stars 15 forks source link

RegeneratorRuntime is not defined #37

Open syaiful6 opened 7 years ago

syaiful6 commented 7 years ago

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.

craigdallimore commented 7 years ago

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