Skip to content

Throw a human-readable error when accessing a non-existent property of exposed object#686

Open
dinoel wants to merge 1 commit intoGoogleChromeLabs:mainfrom
dinoel:improve-error-reporting-2
Open

Throw a human-readable error when accessing a non-existent property of exposed object#686
dinoel wants to merge 1 commit intoGoogleChromeLabs:mainfrom
dinoel:improve-error-reporting-2

Conversation

@dinoel
Copy link

@dinoel dinoel commented Nov 22, 2025

During development, we encountered an issue where calling an undefined function on a proxy object from a web worker resulted in a generic error such as "cannot call apply on undefined". This made development and debugging more difficult.
This small change validates that the property exists before accessing it and throws a human-readable error when it doesn’t.

@dinoel dinoel marked this pull request as ready for review November 22, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant