Is this the best we can do here? It seems silly to start with the self-invoking function to get at a global object, just to then explicitly check for `global` - might as well make this more explicit, checking for `global` and `window`.

Same lines in `test/test.js`.