Skip to content

Can't run with --use_strict due to assignment of read-only function.name property in v35.js #268

@G-Rath

Description

@G-Rath

https://github.com/kelektiv/node-uuid/blob/17d443f7d8cfb65a7d85803218df27a6b4ae8397/lib/v35.js#L46

The above line is assigning to a read-only variable, which is a violation when running in strict mode (via Node's --use_strict argument).

Outside of strict mode, this doesn't actually result in the function name being changed anyway, as assignments to Function.name are ignored.

There are other ways to change the name of a function that hopefully would work.

If I comment that line out, everything works fine, with no other errors.

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