Skip to content

Use Object.prototype.hasOwnProperty; not on object - #32

Merged
stevenvachon merged 1 commit into
stevenvachon:masterfrom
scottnonnenberg:has-own-property
May 22, 2016
Merged

Use Object.prototype.hasOwnProperty; not on object#32
stevenvachon merged 1 commit into
stevenvachon:masterfrom
scottnonnenberg:has-own-property

Conversation

@scottnonnenberg

Copy link
Copy Markdown
Contributor

As of Node 6, querystring.parse() returns an object with no prototype,
which means that it doesn't have its own hasOwnProperty()

https://github.com/nodejs/node/wiki/Breaking-changes-between-v5-and-v6#querystring

Fixes #31. Note: requires the fixes in stevenvachon/urlobj#3 to pass all tests on Node 6.

As of Node 6, querystring.parse() returns an object with no prototype,
which means that it doesn't have its own hasOwnProperty()

https://github.com/nodejs/node/wiki/Breaking-changes-between-v5-and-v6#querystring
@stevenvachon
stevenvachon merged commit c303588 into stevenvachon:master May 22, 2016
@stevenvachon

Copy link
Copy Markdown
Owner

Thanks!!

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.

Silent crash on node 6

2 participants