Skip to content

Conversation

@MSroczynski3
Copy link
Contributor

This PR fixes #383 by using methods.hasOwnProperty(method) to check if the property exists on the object itself, not on the prototype chain.

@mskelton mskelton merged commit 38a559e into mskelton:main Jul 30, 2025
3 checks passed
@github-actions
Copy link

🎉 This PR is included in version 2.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@MSroczynski3 MSroczynski3 deleted the fix/issue#383 branch August 1, 2025 20:33
carlbray pushed a commit to carlbray/eslint-plugin-playwright that referenced this pull request Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prefer-web-first-assertions rule reports "Replace toString() with undefined()" for unsupported methods

2 participants