Package Exports
- the-global-object
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (the-global-object) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
The Global Object
The global object in Node or in the browser.
How it works
Note that the only reliable way to get the global object is:
Function('return this')();but it breaks the Chrome App Content Security Policy, see:
This module checks to see if there is self, window or global variable
and returns the first one that has a reference to itself with the same name,
as a real global object would, with some additional checks.
This is important to not return a wrong object if there is a global variable
called self or window defined. This module does the following checks:
- makes sure that the global object has a circular reference to itself
- makes sure that the global object has own property
Objectequal to globalObject
Hopefully it will no longer be needed when the TC39 global proposal is implemented:
See also:
Issues
For any bug reports or feature requests please post an issue on GitHub.
Author
License
MIT License (Expat). See LICENSE.md for details.

