#53289: fix: propagate exceptions thrown by property getters on objects passed across the contextBridge
Merged
Created: Aug 28, 2026, 6:32:44 PM
Merged: Aug 28, 2026, 7:57:18 PM
4 comments
Target: main
Description of Change
- When an object passed across
contextBridgehas a property getter that throws, rethrow to the caller instead of silently dropping the property and continuing the call — consistent with how array elements are already handled. - Same for an
Errorargument whosemessagegetter throws. - Adds a spec covering both cases.
Checklist
- PR description included
-
npm testpasses - tests are changed or added
Release Notes
Notes: Fixed an issue where an exception thrown by a property getter on an object passed through contextBridge was swallowed instead of being thrown back to the caller.
Backports
43-x-y
PendingWaiting for a manual backport
44-x-y
PendingWaiting for a manual backport
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