title: NodeJS thinks I am duplicating parameter names when I am not
body: <p>Thanks for looking at my question.</p>
  
  <p>In this javascript initialization code, on line 94, I am getting a syntax error: "Duplicate parameter name not allowed in this context".  However, I am not duplicating any parameters.  All of my functions' parameters names are unique within their scope.</p>
  
  <p>The repository is at <a href="https://github.com/allenchan3/foodproject/blob/c3442a3b8542e1f9cbcc5f3f78175765a292dd9a" rel="nofollow noreferrer">https://github.com/allenchan3/foodproject/blob/c3442a3b8542e1f9cbcc5f3f78175765a292dd9a</a>, and the script in question is at <a href="https://github.com/allenchan3/foodproject/blob/c3442a3b8542e1f9cbcc5f3f78175765a292dd9a/server/config/initialize.js" rel="nofollow noreferrer">https://github.com/allenchan3/foodproject/blob/c3442a3b8542e1f9cbcc5f3f78175765a292dd9a/server/config/initialize.js</a>.  The error is appearing on the function call to <code>create_menu_items</code>. I carefully inspected this file for duplicate parameter names but found none.  I tried changing the names of each of the 3 declared variables in the main function, along with changing the names of the parameters.  Nothing seems to get rid of the syntax error, which is preventing my function from executing.</p>
  
  <pre><code>async function create_menu_items(filenames, directory, cat_names_to_ids) {
      /// stuff
  }
  async function main() {
      await create_menu_items(menu_item_filenames, menu_item_dir, categories_name_to_id);
  }
  
  
  [skyler@laptop server]$ npm start
  [.....snip.....]
  (node:6571) UnhandledPromiseRejectionWarning: SyntaxError: Duplicate parameter name not allowed in this context
  </code></pre>
  
  <p>As mentioned, this error keeps appearing and the function <code>create_menu_items</code> doesn't run, even though I think it should, because none of the parameters appear to be in conflict with anything.</p>
  
  <p>Thanks again for taking a look.</p>