W3cubDocs

/DOM

Worker.onmessageerror

The onmessageerror event handler of the Worker interface is an EventListener, called whenever an MessageEvent of type messageerror is fired on the Worker instance — that is, when it receives a message that cannot be deserialized.

Note: This feature is available in Web Workers.

Syntax

Worker.onmessageerror = function() { ... };

Specifications

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 60 ? 57 (57) ? 47 ?
Available in workers 60 ? 57 (57) ? 47 ?
Feature Android Webview Chrome for Android Edge Firefox Mobile (Gecko) Firefox OS (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 60 60 ? 57.0 (57) ? ? 47 ?
Available in workers 60 60 ? 57.0 (57) ? ? 47 ?

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror