DOMError has been replaced with DOMException

Published: | Categories: DOM

Description

The DOMError interface is no longer used for errors in Firefox 58 and later because it has been removed from 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

Update: The DOMError interface had remained until Firefox 69 when it’s completely removed. This note has been corrected to reflect the fact.

References