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

Account for non-enumerable properties in has util #1489

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Conversation

laurakwhit
Copy link
Contributor

Description & motivation 💭

Use Object.getOwnPropertyNames() instead of Object.keys() in the has util to account for instances where an object might have non-enumerable properties (e.g. new Error()).

Screenshots (if applicable) 📸

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

@vercel
Copy link

vercel bot commented Jul 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
holocene ⬜️ Ignored (Inspect) Jul 19, 2023 8:44pm

@laurakwhit laurakwhit merged commit bee4770 into main Jul 20, 2023
9 checks passed
@laurakwhit laurakwhit deleted the update-has-util branch July 20, 2023 15:14
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.

3 participants