mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
We overriden the `GetPackageJSON` in Node.js to let us read files straight from the ASAR file instead of disk. The override works by providing a JS method with the limitation that it should not throw a runtime error. However, this invariant was accidentally violated by `asar.splitPath` that sometimes contrary to its' TypeScript definition returned `false`.
7.7 KiB
7.7 KiB