Support Web Worker context for polyfills