Skip to content

color-string incorrectly believes prototype properties are colors #44

@tolmasky

Description

@tolmasky

color-string will incorrectly return a color object for things like "constructor" and "__proto__".

Here is an example of all of them:

Screen Shot 2019-07-17 at 9 21 08 AM

https://runkit.com/tolmasky/color-string-prototype-bug

If one adds other properties to Object.prototype, those will also be mis-identified as colors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions