Skip to content

Property 'hasOwnProperty' of object #<Object> is not a function #73

@defunctzombie

Description

@defunctzombie

https://github.com/hapijs/qs/blob/master/lib/parse.js#L32

When the object is created via Object.create(null) it does not have object properties. Instead, the following should be used:

Object.prototype.hasOwnProperty.call(obj, key)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions