It should be worker.onerror , then worker.addEventListener('error', ...) -- https://bugs.webkit.org/show_bug.cgi?id=62475#c2