A more reliable method to get the global object
Merge pull request #259 from ljharb/get_global_reliably

A more reliable method to get the global object