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

Use ignoreNonConfigurable for properties deletion #35

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Jun 13, 2019

The ignoreNonConfigurable option should be used for properties deletion, not only properties copying. Properties are deleted when they exist in to but not from.

If ignoreNonConfigurable is false (the default value), non-configurable properties deletion will throw an error. If true, it will be ignored instead.

Also currently non-configurable but writable properties are assigned undefined instead of throwing an error. This PR removes that behavior for consistency, but let me know if I should add it back.

@sindresorhus sindresorhus merged commit 64ebaf2 into master Jun 13, 2019
@sindresorhus sindresorhus deleted the feature/delete-non-configurable branch June 13, 2019 10:35
This was referenced Jun 13, 2019
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