This is a backport PR for branch 42-x-y
MarshallOfSound

#53318: fix: serialize the target's values into the Node.js startup snapshot on cross-arch builds

Merged
Created: Aug 30, 2026, 5:54:35 PM
Merged: Aug 30, 2026, 7:54:47 PM
1 comments
Target: 42-x-y

Backport of #53316

See that PR for details.

Notes: Fixed fs.constants.O_DIRECTORY, O_NOFOLLOW and O_DIRECT holding x86 values on Linux arm64 and armv7l, which made opening a directory fail with EINVAL, and made require('trace_events') behave the same on cross-compiled builds as on native ones.

Backport Information

Original PR Author
MarshallOfSound
Original PR Status
Merged
Original PR Merged At
Aug 30, 2026, 5:50:13 PM
Original PR Link
GitHubView on GitHub

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron