Skip to content

Define the "self" global name #650

@guybedford

Description

@guybedford

The most widely available global is self as it is in both workers and in the main window in browsers.

It would be very useful to define this global for cross-platform support.

As a further point it could even be worth having it replace window since typeof window is typically done for an isBrowser detection, while the same cannot necessarily be said of self.

Metadata

Metadata

Assignees

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