title: Pdf.worker.min.js I am trying to use this library in my chrome extension but I have a error inside the library file
body: <p>i use this library in my <strong>chrome extension</strong> to work with pdf files and while migrating my extension from <strong>manifest v2 to v3</strong> I ran in to some problems the in the <strong>pdf.worker.min.js</strong> a certain block of code has been problematic when i removed it everything seems to work fine but i am not sure if it is the right move to remove it the code is in the createDocumentHandler function what i did is i commented the condition as you can see in the code snippet bellow here is the block of code :
  is anyone has an explanation why this error happened ? and what can i change to fix it</p>
  <pre><code>
      for (const property in []) {
        enumerableProperties.push(property);
      }
  
      // if (enumerableProperties.length) {
      //   throw new Error(&quot;The `Array.prototype` contains unexpected enumerable properties: &quot; + enumerableProperties.join(&quot;, &quot;) + &quot;; thus breaking e.g. `for...in` iteration of `Array`s.&quot;);
      // }```
  </code></pre>