Skip to content

Improve object properties iteration #103

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iunanua
Copy link
Contributor

@iunanua iunanua commented Mar 5, 2024

What does this PR do?

Replace obj.GetPropertyNames() call with napi_get_all_property_names() in order to get only object's own properties.

https://nodejs.org/api/n-api.html#n_api_napi_get_property_names

Motivation

Additional Notes

Describe how to test your changes

Checklist

  • The CHANGELOG.md has been updated
  • Unit tests have been updated and pass
  • If known, an appropriate milestone has been selected

@iunanua iunanua force-pushed the igor/improve-object-prop-iteration branch from 8e9296b to 84b6175 Compare March 5, 2024 12:55
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