WebWorkers don't have window.

Assume `this` is the global object.