title: "new Set" is returning an empty set in nodejs
body: <p>I was testing some websites using the below function with n, suddenly "new Set" started returning empty Array as the following:</p>
  
  <pre><code>function collectAllSameOriginAnchorsDeep(sameOrigin = true) {
  
  const allElements = [];
  
  // Some coding here 
  
  const filtered = allElements
  
  // Some coding here 
  
  console.log(filtered) // The items are printed in the log probably
  
  
  return Array.from(new Set(filtered)); // Nothing is getting returned!
  }
  </code></pre>
  
  <p>If I replace the last line with return Array.from(filtered), then it works fine but I'm using "Set" to remove any repeated values.</p>