Skip to content

Slightly more horrifying, but more universal technique #3

@mathiasbynens

Description

@mathiasbynens

A horrifying globalThis polyfill in universal JavaScript describes a technique that could be useful for this project.

Instead of the current approach of detecting known environment-specific references to the global this, the new technique doesn't depend on any such bindings, and is 100% universal JavaScript (although you would still need a single fallback if IE <= 10 support is a concern).

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