Skip to content

define-properties is not a polyfill for Object.defineProperties #35

Open
@ljharb

Description

@ljharb

The current error message for this package is flatly incorrect:

error  "define-properties" should be replaced with native functionality. You can instead use Object.defineProperties. Read more here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties  depend/ban-dependencies

It's ofc fine if you want to suggest an alternative, but Object.defineProperties isn't it by itself.

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