-
Notifications
You must be signed in to change notification settings - Fork 145
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
Incorrect hash for array with multiple elements that refer to the same object #78
Comments
This is intentional – |
Maybe an option flag |
@everhardt It’s not trivial to implement this in a way so that this still works for objects with circular references – but yes, a PR would be welcome. |
I understand
…On Fri, 3 May 2019 at 16:17, Anna Henningsen ***@***.***> wrote:
@everhardt <https://github.com/everhardt> It’s not trivial to implement
this in a way so that this still works for objects with circular references
– but yes, a PR would be welcome.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#78 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOBIGPHLLS5C4R4Y5RPZVTPTRCQTANCNFSM4HKUHWWA>
.
|
This issue made me leave this lib in favor for node-object-hash instead, which doesn't have this issue. |
I would expect
objectHash(b) === objectHash(c)
forThat's not the case. See https://codepen.io/everhardt/pen/PvYPvp for an example.
The text was updated successfully, but these errors were encountered: