Trying to run these new features as shown http://h3manth.com/new/blog/2013/es6-on-nodejs/, specifically Generators in my local node environment. Any reason when I run node --harmony --use-strict es6.js
on any Node versions before 0.11.4 I get the errors
function *Counter() {
^
SyntaxError: Unexpected token *
etc...
It works on any versions 0.11.4 and after, but when add a --debug-brk
statement in there I get
global.v8debug.Debug.setBreakPoint(compiledWrapper, 0, 0);
^
ReferenceError: break_point is not defined
Not sure why it gives me the option to enable harmony, but not utilize it in previous versions, and why can't I debug the later versions?