UnYield

Converts ES6 yield to ES5 semantics

input (edit me). If orange, your code contains a syntax error. If your code is correct, please report this here.

output (copy me). If orange, compiled code contains a syntax error (that's a bug, feel free to report this here :)

Tests: http://unyield.qfox.nl/tests.html

Known wontfixes: finally, catch var stuff, ASI related transformation bugs, multiple yields in the same expression (same statement is fine), any yield inside eval.

In fact, it's not likely this project will be worked on.

This is a nearly complete "clean-room" implementation of translating generators or yield to ES5, allowing you to use generators in current browsers. For more solid, supported solutions see Facebook's Regenerator or Google's Traceur.