-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Implement stage 3 proposal globalThis #5885
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
4484965
to
5b2093f
Compare
Hooray! 🎉 Going off on a tangent, I find the name of |
See https://github.com/tc39/proposal-global/blob/master/NAMING.md for the constraints |
Thanks, yeah, I understand the challenges around the proposal (I was very sad when |
It'd be great to get this merged :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Also want to agree the name globalThis
is an odd choice.
Hi @rhuanjl, would you mind rebasing this one? I will help merge it. |
I've noticed that there is an agenda item for the TC39 meeting due to be held this week to discuss changing the name of globalThis, should we hold off on getting this merged until after that discussion? |
@rhuanjl Given that we already discussed it in November, and decided not to change the name, I find it highly unlikely that anything will change - in addition, Chrome and Safari are already both shipping under the current name. It's up to yall of course, but I'd suggest merging as-is, and in the unlikely event of a name change, it can be updated. |
@ljharb I can see (from it being crossed out on the agenda) that the name change discussion has taken place - can you tell us if the name is being changed/is likely to be? |
@rhuanjl there was not consensus for any change, no. |
@boingoing as per @ljharb's comment it sounds like the name won't be changing. I've rebased on latest master, ok to merge? |
@rhuanjl Yup, I'll run the change through our internal test suites and merge it when it's green. |
Merge pull request #5885 from rhuanjl:globalThis This PR implements the stage 3 proposal globalThis. 1. Actual implementation is 2 lines of code 2. I've added a default enabled flag so it can be flagged off if ever necessary 3. I've added a few tests which I think should be sufficient 4. The large size of the diff is only due to it needing a byte code regen cc: @ljharb @pleath closes: #1658
This PR implements the stage 3 proposal globalThis.
cc: @ljharb @pleath
closes: #1658