Brian Di Palma (2014-10-08T14:34:04.000Z)
domenic at domenicdenicola.com (2014-10-15T18:59:12.798Z)
>On Wed, Oct 8, 2014 at 3:21 PM, caridy <caridy at gmail.com> wrote: > var myGlobalFunction = Reflect.global.myGlobalFunction; > > note: you can't use import for global due to the nature of the binding process when importing members or namespaces. I find ```js import global from "@global"; global.myGlobalFunction(42); ``` more readable. If we can import module meta information why not import the global object too? The global should always exist so the binding checks will work, it's a module with a default export. Accessing any global property is via that object. No need to allow random identifiers floating around modules.