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

Create a "globalThis" of some sort on Lin. #18

Open
NotJustAnna opened this issue Nov 14, 2021 · 0 comments
Open

Create a "globalThis" of some sort on Lin. #18

NotJustAnna opened this issue Nov 14, 2021 · 0 comments
Labels
component:runtime This issue is related to the runtime. enhancement New feature or request
Milestone

Comments

@NotJustAnna
Copy link
Owner

Turns out, detecting if a given function exists is really hard if there's no way to detect if a given feature exists in the global scope if that immediately fails.

Implement a "globalThis", "_G" which lets you access the scope as an object.

If the global scope is immutable, it'll return a copy of the map as an object, otherwise it'll return the map itself (so you can .remove stuff from the scope lol)

@NotJustAnna NotJustAnna added this to the Version 1.0 milestone Nov 14, 2021
@NotJustAnna NotJustAnna added enhancement New feature or request component:runtime This issue is related to the runtime. labels Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:runtime This issue is related to the runtime. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant