Skip to content

Checks for CommonJS module environments are not fail-safe #139

@hjerabek

Description

@hjerabek

IMO, the CommonJS module environment checks coded here, i.e.

typeof module === 'object' && module.exports

will raise an exception if module==null. They should be changed to

typeof module === 'object' && module && module.exports

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