Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Prevent a possible exception when assigning the data property in events#1391

Draft
madrobby wants to merge 1 commit into
mainfrom
prevent-error-on-event-data-readonly
Draft

Prevent a possible exception when assigning the data property in events#1391
madrobby wants to merge 1 commit into
mainfrom
prevent-error-on-event-data-readonly

Conversation

@madrobby

@madrobby madrobby commented May 7, 2026

Copy link
Copy Markdown
Owner

At least some events like InputEvent throw an exception:
TypeError: Cannot set property data of #<InputEvent> which has only a getter

This patch prevents an exception from interrupting the rest of event processing.

…ents

At least some events like `InputEvent` throw an exception:
`TypeError: Cannot set property data of #<InputEvent> which has only a getter`

This patch prevents an exception from interrupting the rest of event processing.
@madrobby madrobby self-assigned this May 7, 2026
@madrobby madrobby requested a review from mislav May 7, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant