Open
Description
From what I can remember, Reflect.global
was suppose to provide a way to access the global now that this
is undefined
in modules, but it is not in the spec for what I can tell. Using new Function()
is not an option if you're using CSP, the only option at this point is to cross your fingers and do: typeof global !== 'undefined' ? global : window;
.
/cc @ericf