Skip to content

fix(runtime): support runtimes without global - #158

Merged
shadowspawn merged 1 commit into
pkgjs:mainfrom
kisaragi-hiu:globalThis
Sep 14, 2024
Merged

fix(runtime): support runtimes without global#158
shadowspawn merged 1 commit into
pkgjs:mainfrom
kisaragi-hiu:globalThis

Conversation

@kisaragi-hiu

Copy link
Copy Markdown
Contributor

Fixes #157. This makes this library / polyfill usable on gjs as well as any other standards compliant runtime that doesn't refer to the global object as global.

I also added a short comment in the copied internal/primordials.js to note that this modification has been made so that the header comment remains accurate.

@kisaragi-hiu

Copy link
Copy Markdown
Contributor Author

(On the topic of #154, I agree to license this under MIT or Apache 2.0 up to the maintainers' discretion.)

@shadowspawn shadowspawn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shadowspawn
shadowspawn merged commit 8038b6f into pkgjs:main Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants