title: Node.js embeding an async function in another async function gives error
body: <p>I tried to embed an async function in another async function. Why do I get an error and how to solve it?</p>
  
  <p>That's my setup:</p>
  
  <p>helper.js</p>
  
  <pre><code>const express = require('express');
  
  async function loginRoute (req, res) =&gt; {
  
      ...
  
  }
  
  module.exports = {
    login: async (req, res, next) =&gt; {
  
      try {
        async loginRoute(req, res);
      } catch (err) {
        res.status(500).end();
      }
  
      next();
  
    }
  
  }
  </code></pre>
  
  <p>Console Error:</p>
  
  <pre><code>async function loginRoute (req, res) =&gt; {
                                       ^^
  SyntaxError: Unexpected token =&gt;
      at ...
      at ..
  </code></pre>
  
  <p>Or is there no need to do it twice?</p>