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

fix diff for objects with custom hasOwnProperty values #2097

Merged
merged 1 commit into from
Feb 17, 2016

Conversation

mantoni
Copy link
Contributor

@mantoni mantoni commented Feb 7, 2016

Instead of calling hasOwnProperty directly, it should be Object.prototype.hasOwnProperty.call(object, prop). This is already the case further up in the exports.stringify implementation.

@danielstjules
Copy link
Contributor

Awesome, thank you!

danielstjules added a commit that referenced this pull request Feb 17, 2016
fix diff for objects with custom hasOwnProperty values
@danielstjules danielstjules merged commit b20fdfe into mochajs:master Feb 17, 2016
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