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 39-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 30, 2025
@codebytere codebytere merged commit 29d60d9 into 39-x-y Oct 2, 2025
62 of 63 checks passed
@codebytere codebytere deleted the trop/39-x-y-bp-fix-runtime-js-error-that-crashes-getpackagejson--1759249942831 branch October 2, 2025 16:16
@release-clerk
Copy link

release-clerk bot commented Oct 2, 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

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

2 participants