'await Unexpected identifier' on Node.js 7.5 : <p>I am experimenting with the <code>await</code> keyword in Node.js. I have this test script:</p>

<pre><code>"use strict";
function x() {
  return new Promise(function(resolve, reject) {
    setTimeout(function() {
      resolve({a:42});
    },100);
  });
}
await x();
</code></pre>

<p>But when I run it in node I get</p>

<pre><code>await x();
      ^
SyntaxError: Unexpected identifier
</code></pre>

<p>whether I run it with <code>node</code> or <code>node --harmony-async-await</code> or in the Node.js 'repl' on my Mac with Node.js 7.5 or Node.js 8 (nightly build).</p>

<p>Oddly, the same code works in the Runkit JavaScript notebook environment: <a href="https://runkit.com/glynnbird/58a2eb23aad2bb0014ea614b" rel="noreferrer">https://runkit.com/glynnbird/58a2eb23aad2bb0014ea614b</a></p>

<p>What am I doing wrong?</p>
