Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(runtime): support runtimes without global #158

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

kisaragi-hiu
Copy link
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
Contributor Author

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

Copy link
Collaborator

@shadowspawn shadowspawn left a comment

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
7 checks passed
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.

parseArgs in runtimes where global is not defined
3 participants