-
Notifications
You must be signed in to change notification settings - Fork 647
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
Adding globalThis #39
Comments
globalThis is the only standard JS global :-) the others are part of node or browsers. |
While If you need access to the global object before let global = (new Function('return this'))(); |
@avp it's shipping in every browser https://twitter.com/mathias/status/1151140681374547969 so the stage isn't really relevant; it'll be stage 4 relatively soon. Glad to hear you're adding it :-) |
It’s a shame that |
d088f6f adds this. |
Hey,
I want to try contributing some code to Hermes because it looks like a fun project and a lot more manageable to push code to than V8 (or other big engines).
globalThis is a new canonical way to access the global variable.
Do you have plans to support this (standard) feature and if so - would you be interested in a PR for this?
(I totally get if the answer is "no" because of scoping and I didn't see any other exposed glboal - even though it's standard JS)
The text was updated successfully, but these errors were encountered: