/generators_hello

Experiments with the new Generators in Harmony.

Primary LanguageJavaScript

Experiments with the new Generators in Harmony

Some experiments with harmony generators.

Run with Node

Install version 0.11.2 version of Node or higher, with nvm you can do

nvm install v0.11.2

to install node. And then to run make sure you include the --harmony flag. For example

node --harmony iteration.js

Run with Chrome Canary

Install Chrome Canary. Open iteration.html in Chrome Canary.

Next serve the file via http using something like

python -m SimpleHTTPServer