#56173: chore: remove fix_allow_passing_fileexists_fn_to_legacymainresolve.patch
Merged
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-flightSemver 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