fixes  #11750, added a WebWorker hostenvironment