title: Async throwing SyntaxError: Unexpected token (
body: <p>I'm running a test using the headless Chrome package <a href="https://github.com/GoogleChrome/puppeteer" rel="nofollow noreferrer">Puppeteer</a>:</p>
  
  <pre><code>const puppeteer = require('puppeteer')
  
  ;(async() =&gt; {
    const browser = await puppeteer.launch()
    const page = await browser.newPage()
    await page.goto('https://google.com', {waitUntil: 'networkidle'})
    // Type our query into the search bar
    await page.type('puppeteer')
  
    await page.click('input[type="submit"]')
  
    // Wait for the results to show up
    await page.waitForSelector('h3 a')
  
    // Extract the results from the page
    const links = await page.evaluate(() =&gt; {
      const anchors = Array.from(document.querySelectorAll('h3 a'))
      return anchors.map(anchor =&gt; anchor.textContent)
    })
    console.log(links.join('\n'))
    browser.close()
  })()
  </code></pre>
  
  <p>And I'm running the script as: <code>node --harmony test/e2e/puppeteer/index.js</code> (v6.9.1)</p>
  
  <p>But I get this error:</p>
  
  <pre><code>;(async() =&gt; {
         ^
  SyntaxError: Unexpected token (
  </code></pre>
  
  <p>What could be the problem?</p>
  
  <p>Note: I'm using Vue CLI's official Webpack template: </p>