Closed ljharb closed 4 years ago
Chrome started implementing global
behind a flag https://bugs.chromium.org/p/v8/issues/detail?id=5537#c4
Thanks; i'm subscribed and it's already linked in the OP :-)
Sorry that I am catching this a bit late, but I am wondering about the wording of this PR, which was set in this commit in response to this thread. I am wondering, how did you arrive at this wording, rather than using the wording in @domenic's suggestion?
Which PR are you referring to?
ah, that's just a commit, not a PR.
I don't remember exactly; but I think we discussed it offline and @domenic was satisfied with this rewording. If not, a new issue or PR is welcome; it'd be a minor editorial tweak (and it could also be commented directly on the spec PR)
Is there anything you could say about why you went towards this wording rather than the wording Domenic suggested? I can't find information about it in commit messages or bug threads.
Nope, I’m afraid i can’t remember my reasons from 2 years ago. I believe it seemed like the most minimal modification to the existing text. Since Domenic hasn’t brought it up, do you have a preference for an alternative?
I have a preference for the wording Domenic suggested, all else being equal. It seems unnecessary to me to create another separate name for the global this value, when we already have another way of referring to it.
I’m worried about this part: https://github.com/tc39/proposal-global/issues/17#issuecomment-250015534
globalThis
has already available without a flag in Chrome 70
@Jack-Works It isn't by default. You probably have enabled the "Experimental JavaScript" flag.
@targos oh yes I forgot it
It's in Chrome 71 (beta):
V8 v7.1 also adds support for the globalThis proposal, enabling a universal mechanism to access the global object even in strict functions or modules regardless of the platform.
It's implemented in SpiderMonkey
In case you want to update the OP: globalThis
was implemented in Chrome 70 behind a flag and (as you already note) shipped unflagged in Chrome 71.
Thanks :-) the OP already notes this.
@ljharb It doesn’t currently note that it shipped behind a flag in Chrome 70.
ah true, thanks, updating now
@ljharb Will you be bringing this proposal before the committee for stage 4 at the next meeting?
Quite possibly, as soon as i have the stomach for further internet outrage.
Stage 4
Stage 3Stage 2