jmar777/suspend — pull request #8 by benjamn (2013-10-29 20:52:22+00:00)
Title: Use regenerator to run tests in any version of node

The https://github.com/facebook/regenerator project transforms ES6 generator functions into ES5 that behaves the same way, so Node.js v0.11.2 is no longer a strict requirement for using https://github.com/jmar777/suspend.

More explanation about regenerator can be found [here](http://facebook.github.io/regenerator/) and [here](https://news.ycombinator.com/item?id=6594207).

In Node.js v0.11.2 and above, the tests will still run natively using the `--harmony-generators` flag in addition to running in translation using regenerator.

To be clear, this pull request does not impose regenerator on users of suspend who only need compatibility with Node.js v0.11.2, but it does demonstrate that it's possible to use suspend in any ES5-compatible environment.