Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Protect against matches() being undefined #154

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Jan 10, 2024

try/catch to protect against cases where el.matches is not a function (not sure exact cause, but possibly el is undefined, or not an Element type)

try/catch to protect against cases where `el.matches` is not a function (not sure exact cause, but possibly `el` is undefined, or not an Element type)
Copy link

github-actions bot commented Jan 10, 2024

size-limit report 📦

Path Size
rrweb - record only (gzipped) 16.68 KB (+0.04% 🔺)
rrweb - record & CanvasManager only (gzipped) 19.22 KB (+0.04% 🔺)
rrweb - record only (min) 56.93 KB (+0.04% 🔺)
rrweb - record with treeshaking flags (gzipped) 15.46 KB (+0.04% 🔺)

@billyvg billyvg marked this pull request as ready for review January 10, 2024 16:00
@billyvg billyvg requested a review from a team January 10, 2024 16:01
@billyvg billyvg merged commit 70b74a7 into sentry-v2 Jan 10, 2024
14 checks passed
@billyvg billyvg deleted the fix-el-matches-undefined branch January 10, 2024 16:46
billyvg added a commit that referenced this pull request Apr 26, 2024
try/catch to protect against cases where `el.matches` is not a function
(not sure exact cause, but possibly `el` is undefined, or not an Element
type)
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.

None yet

2 participants