Create an WxEnd bound to the global WorkerGlobalScope.

Calling this when globalThis is not a WorkerGlobalScope will result in an error. Calling this function multiple times will return the same promise - even if previous call returned an error.