title: Node.js: for each … in not working
body: <p>I wanted to use <code>for each ... in</code> with Node.js (v0.4.11).</p>
  
  <p>I use it like this:</p>
  
  <pre><code>var conf = {
     index: {
        path: {
           first: "index.html",
           pattern: "index/{num}.html"
        },
        template: "index.tpl",
        limit: 8
     },
     feed: {
        path: "feed.xml",
        template: "atom.tpl",
        limit: 8
     }
  }
  
  for each (var index in conf) {
    console.log(index.path);
  }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre class="lang-none prettyprint-override"><code>        for each (var index in conf) {
       ^^^^
  
  node.js:134
          throw e; // process.nextTick error, or 'error' event on first tick
          ^
  SyntaxError: Unexpected identifier
      at Module._compile (module.js:397:25)
      at Object..js (module.js:408:10)
      at Module.load (module.js:334:31)
      at Function._load (module.js:293:12)
      at require (module.js:346:19)
      at Object.&lt;anonymous&gt; (/home/paul/dev/indexing/lib/Index.js:3:13)
      at Module._compile (module.js:402:26)
      at Object..js (module.js:408:10)
      at Module.load (module.js:334:31)
      at Function._load (module.js:293:12)
  </code></pre>
  
  <p>Where is the mistake? <code>for each ... in</code> is supported since Javascript 1.6.</p>
  
  <p>See <a href="https://developer.mozilla.org/en/JavaScript/Reference/Statements/for_each...in" rel="noreferrer">MDN</a> for information about the usage of <code>for each ... in</code>.</p>