ckerr

#56173: chore: remove fix_allow_passing_fileexists_fn_to_legacymainresolve.patch

Merged
Created: Dec 3, 2026, 3:06:00 PM
Merged: Dec 4, 2026, 3:36:53 PM
2 comments
Target: main

Addresses Tier 1A from #56164.

Removes patches/node/fix_allow_passing_fileexists_fn_to_legacymainresolve.patch.

Node v26's lib/internal/modules/helpers.js looks up internalFsBinding.legacyMainResolve dynamically through nativeLoaderMethods.legacyMainResolve. Wrapping internalBinding('fs').legacyMainResolve in lib/node/asar-fs-wrapper.ts handles ASAR ESM→CJS package resolution in JS (respecting both --permission and --permission-audit modes, and without colliding with node:vfs's setLoaderOverrides), while passing non-ASAR paths straight through to the native binding.

Notes: none

Backports

46-x-y
In-flight
PR Number
#56214
Waiting to be merged

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