Skip to content

Conversation

@trop
Copy link
Contributor

@trop trop bot commented Sep 30, 2025

Backport of #48293

See that PR for details.

Notes: fix: runtime JS error that crashes GetPackageJSON

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`.

Co-authored-by: Fedor Indutny <indutny@signal.org>
@trop trop bot requested a review from a team September 30, 2025 16:32
@trop trop bot added 37-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 30, 2025
@ckerr ckerr merged commit 3a9ca32 into 37-x-y Oct 3, 2025
109 of 110 checks passed
@ckerr ckerr deleted the trop/37-x-y-bp-fix-runtime-js-error-that-crashes-getpackagejson--1759249941218 branch October 3, 2025 02:00
@release-clerk
Copy link

release-clerk bot commented Oct 3, 2025

Release Notes Persisted

fix: runtime JS error that crashes GetPackageJSON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

37-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants