Skip to content

Change obj.hasOwnProperty to Object.hasOwn or Object.prototype.hasOwnPerperty.call #176

@rktyt

Description

@rktyt

v0.7.1

https://github.com/jshttp/cookie/blob/v0.7.1/index.js#L133

Here is an example where this is problematic.

require('cookie').parse('hasOwnProperty=str;xx=xx')
// Uncaught TypeError: obj.hasOwnProperty is not a function

This should not be the intended behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions