Skip to content

fix: propagate exceptions thrown by property getters on objects passed across the contextBridge - #53297

Merged
MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-propagate-exceptions-thrown-by-property-getters-on-objects-passed-across-the-contextbridge-1787965046752
Aug 29, 2026
Merged

MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-propagate-exceptions-thrown-by-property-getters-on-objects-passed-across-the-contextbridge-1787965046752

Conversation

@trop

@trop trop Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Backport of #53289

See that PR for details.

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.

…d across the contextBridge

Objects passed as arguments across the context bridge are copied
property-by-property. If reading a property threw, the property was
skipped and the call proceeded, unlike array elements where the
exception is propagated to the caller. The same applied to reading
`message` from an Error argument. Both now abort the conversion and
rethrow to the caller, matching the array behaviour.

Co-authored-by: Sam Attard <[email protected]>
@trop
trop Bot requested a review from MarshallOfSound August 29, 2026 00:57
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Aug 29, 2026
@MarshallOfSound
MarshallOfSound merged commit 113478c into 45-x-y Aug 29, 2026
94 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/45-x-y-bp-fix-propagate-exceptions-thrown-by-property-getters-on-objects-passed-across-the-contextbridge-1787965046752 branch August 29, 2026 02:58
@release-clerk

release-clerk Bot commented Aug 29, 2026

Copy link
Copy Markdown

Release Notes Persisted

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant