Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

obj.hasOwnProperty is not a function #149

Description

@shgysk8zer0
  • node --version: v6.9.1
  • npm --version: 3.10.8
  • myth --version: 1.5.0

Full error:

error · TypeError: obj.hasOwnProperty is not a function
             ·   at clone (/usr/lib/node_modules/myth/node_modules/clone-component/index.js:30:17)
             ·   at clone (/usr/lib/node_modules/myth/node_modules/clone-component/index.js:31:23)
             ·   at clone (/usr/lib/node_modules/myth/node_modules/clone-component/index.js:31:23)
             ·   at Object.exports.prefixes (/usr/lib/node_modules/myth/lib/features.js:124:14)
             ·   at /usr/lib/node_modules/myth/lib/index.js:52:33
             ·   at Array.forEach (native)
             ·   at /usr/lib/node_modules/myth/lib/index.js:50:22
             ·   at Rework.use (/usr/lib/node_modules/myth/node_modules/rework/index.js:50:3)
             ·   at myth (/usr/lib/node_modules/myth/lib/index.js:36:6)
             ·   at /usr/lib/node_modules/myth/bin/myth:101:13

I have found that updating /usr/lib/node_modules/myth/node_modules/clone-component/index.js:30:17 to use Object.prototype.hasOwnProperty.call(obj, key) fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions