How to enable harmony syntax support in coffeescript?
问题 I used node.js(0.11.13) with --harmony flag and used function *() and yield keywords. I tried to simplify my development on node.js with help of coffeescript, so far it works great but I went into troubles with yield and declaring a generator - it complains about 'reserved keyword yield' . Any ideas? 回答1: Another way to open the gate to the black dimension is: co = require 'co' sleep = require 'co-sleep' co(`function*(){1` console.log 'hi!' `yield sleep(1000)` console.log 'bye!' `1}`)() It's