Skip to content

Conversation

@blottn
Copy link

@blottn blottn commented Jan 22, 2024

According to the RFC, apply(a, {}) is a noop. However when running generate(a,a) the output is undefined. This is undesirable since then the result of doing apply(a, generate(a,a)) is not a.

This patch updates the function generate to instead return {} in cases where nothing should be changed.

This also changes the result of some tests. I have updated the tests to expect the new result but I that this likely results in breaking changes for users.

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