镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Use globalThis instead of global - #530

Merged
mcollina merged 2 commits into
mainfrom
globalthis
Dec 18, 2023
Merged

mcollina merged 2 commits into
mainfrom
globalthis

Conversation

@mcollina

@mcollina mcollina commented Dec 18, 2023 •

Copy link
Copy Markdown
Member

Fixes #529

Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mofux

mofux commented Dec 18, 2023

Copy link
Copy Markdown

There's also another occurence in src/util.js:

const AbortSignal = global.AbortSignal || require('abort-controller').AbortSignal
const AbortController = global.AbortController || require('abort-controller').AbortController

However, not sure if this one also needs modification.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v4.5.0: global is not defined

2 participants