DOMError has been removed in favour of DOMException

Published: | Categories: DOM


The DOMError interface has been removed with Firefox 58 because it’s no longer standardized in the DOM4 spec. From now on, the error property on FileReader, IDBRequest, IDBTransaction and RTCPeerConnection objects will return a DOMException instead. This change should not affect your code unless it checks for the object type for some reason, like below:

error instanceof DOMError