Skip to content

flag/deprecate global - recommend globalThis #47784

Closed
@jimmywarting

Description

@jimmywarting

Affected URL(s)

https://nodejs.org/dist/latest-v20.x/docs/api/globals.html#global

Description of the problem

global should really not be used anymore... it's too nodejs specific. and should be marked as legacy
globalThis works everywhere and is the "preferred" way for cross compatibility

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions