flag/deprecate `global` - recommend `globalThis`
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 35.1k
Closed
Labels
Description
opened
on Apr 29, 2023Affected 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
Type
No type
Projects
No projects
Milestone
No milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions