title: ReferenceError: BigInt is not defined Asar Electron Nodejs
body: <p>Hello have been trying to extract and repack an app.asar to update files inside the package :</p>
  <p><code>await asar.extractAll(path.join(__dirname, './app.asar'),path.join(__dirname, './destfolder'));</code></p>
  <p>Then changing some files in destfolder then</p>
  <p><code>await asar.createPackage(path.join(__dirname, './destfolder'),path.join(__dirname, './app.asar'));</code></p>
  <p>But i have been getting this error :</p>
  <pre><code>ReferenceError: BigInt is not defined
      at new Filesystem (C:\Users\Path\to\project\node_modules\asar\lib\filesystem.js:17:5)
      at Object.module.exports.readFilesystemSync (C:\Users\Path\to\project\node_modules\asar\lib\disk.js:85:24)
      at Object.module.exports.extractAll (C:\Users\Path\to\project\node_modules\asar\lib\asar.js:170:27)
      at Request._callback (C:\Users\Path\to\project\server.js:221:26)
      at Request.init.self.callback (C:\Users\Path\to\project\node_modules\request\request.js:185:22)
      at Request.emit (events.js:182:13)
      at Request.&lt;anonymous&gt; (C:\Users\Path\to\project\node_modules\request\request.js:1154:10)
      at Request.emit (events.js:182:13)
      at IncomingMessage.&lt;anonymous&gt; (C:\Users\Path\to\project\node_modules\request\request.js:1076:12)
      at Object.onceWrapper (events.js:273:13)
      at IncomingMessage.emit (events.js:187:15)
      at endReadableNT (_stream_readable.js:1090:12)
      at process._tickCallback (internal/process/next_tick.js:63:19)
  </code></pre>
  <p>Platform : Windows x64
  Node version : v14.15.1</p>
  <p>I don't know if this is a bug, but i have been stuck on this for about 2 days now and didn't find a solution
  I created an issue here : <a href="https://github.com/electron/asar/issues/217" rel="nofollow noreferrer">https://github.com/electron/asar/issues/217</a>
  Thank you for your efforts, dont hestitate to ask for any information</p>
  <p><strong>UPDATE</strong></p>
  <p>In the node module asar folder package.json :</p>
  <pre><code>&quot;standard&quot;: {
  &quot;env&quot;: {
    &quot;mocha&quot;: true
  },
  &quot;globals&quot;: [
    &quot;BigInt&quot;
  ]},
  </code></pre>
  <p>I tried changing it to :</p>
  <pre><code>&quot;standard&quot;: {
  &quot;env&quot;: {
    &quot;es2020&quot;: true,
  &quot;browser&quot;: true,
  &quot;node&quot;: true,
    &quot;mocha&quot;: true
  },
  &quot;globals&quot;: {
    &quot;BigInt&quot;:true
  }},
  </code></pre>
  <p>Still i didn't work</p>
  <p><strong>LAST UPDATE RESOLVED</strong></p>
  <p>Electron runs it's own version of nodejs and i hadn't the last package version. Once i updated my electron package, everything worked ! Hope that this will help someone</p>