While the name is correct in Document context, it is wrong in WorkerGlobalScope context. In worker, it does two things. 1. Log an exception to console. 2. Propagate it to worker object and emit ErrorEvent. So this name is misleading. We should have appropriate name for this.