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

Support Object.create(null) as plain object #23

Merged
merged 1 commit into from
Jul 21, 2020
Merged

Conversation

TrySound
Copy link
Collaborator

Copy link
Owner

@jonschlinkert jonschlinkert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for doing this!

@TrySound TrySound merged commit ae35765 into master Jul 21, 2020
@@ -14,6 +14,7 @@ describe('Same-Realm Server Tests', function() {
assert(isPlainObject(Object.create(Object.prototype)));
assert(isPlainObject({foo: 'bar'}));
assert(isPlainObject({}));
assert(isPlainObject(Object.create(null)));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this be a breaking change as it used to return false?

Also the readme still states it returns false
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bumped major version. Fixed readme. Thanks.

@TrySound TrySound deleted the support-object-null branch July 25, 2020 16:14
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

3 participants