"Redacted" global-namespace

kai zhu kaizhu256 at gmail.com
Sat Sep 29 12:02:47 UTC 2018

+1 for unified global-object (currently stage-3)

can someone pm me what the redacted-name is?  i'm interested in polyfilling it for existing projects, e.g.:

/*jslint browser*/
/*global global process*/
(function () {
 * polyfill for
 * https://github.com/tc39/proposal-global
 * assuming redacted-name is "global2"
    "use strict";
    var global2;
    try {
        global2 = process.versions.node && global;
    } catch (ignore) {
    global2 = global2 || window;
    global2.global2 = global2;

kai zhu
kaizhu256 at gmail.com

> On 11 Aug 2018, at 1:29 AM, Jordan Harband <ljharb at gmail.com> wrote:
> The rationale is in the notes themselves.
> Yes, we could do so in principle, but it's rarely useful to do so.
> If the impact is insignificant, then we made nothing worse, just delayed some information spreading for a few weeks/months. If the impact is significant, then this has a positive effect.
> I'm not seeing the downside.
> On Fri, Aug 10, 2018 at 10:27 AM, kdex <kdex at kdex.de <mailto:kdex at kdex.de>> wrote:
> I'd be interested to learn why it was decided to redact a possible new name 
> for `global` in the latest meeting notes[1].
> Although I do understand that redacting the name minimizes its chance to gain 
> more usage, I doubt that the impact would be significant; if anything, I think 
> people would have trouble to think of this form of standardization as "open".
> By the same argument, we could in principle redact any new prototype/global 
> property, couldn't we? Is the intent not to cause a second "smooshgate"? 
> What's the point?
> [1] https://github.com/rwaldron/tc39-notes/blob/master/es9/2018-07/
> july-24.md#new-name-for-global <https://github.com/rwaldron/tc39-notes/blob/master/es9/2018-07/july-24.md#new-name-for-global>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org <mailto:es-discuss at mozilla.org>
> https://mail.mozilla.org/listinfo/es-discuss <https://mail.mozilla.org/listinfo/es-discuss>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180929/946e2489/attachment.html>

More information about the es-discuss mailing list