Skip to content

globalThis obviates the need for any shmiming on the user's part. #74

@Pomax

Description

@Pomax

ES6 introduced globalThis, which is supported by all LTS versions of Node (support was added in v12, the oldest still available LTS version) and obviates the need for users to write their own shims. The library itself can test whether globalThis.localStorage exists, and if not, create it. As this is the true global scope, localStorage can now be called (without prefix) anywhere, just like require(), process, etc. etc.

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