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

Plain objects can't be compared. #102

Closed
nlf opened this issue Oct 23, 2014 · 0 comments · Fixed by #103
Closed

Plain objects can't be compared. #102

nlf opened this issue Oct 23, 2014 · 0 comments · Fixed by #103
Assignees
Labels
bug
Milestone

Comments

@nlf
Copy link
Member

@nlf nlf commented Oct 23, 2014

var a = Object.create(null);
var b = Object.create(null);

a.b = 'c';
b.b = 'c';

Hoek.deepEqual(a, b);

Results in a Object object has no method 'hasOwnProperty' error.

@nlf nlf added the bug label Oct 23, 2014
@nlf nlf self-assigned this Oct 23, 2014
@nlf nlf added this to the 2.8.1 milestone Oct 23, 2014
nlf added a commit that referenced this issue Oct 23, 2014
closes #102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.