diff --git a/fetch.js b/fetch.js index 53c509da..b695d15b 100644 --- a/fetch.js +++ b/fetch.js @@ -462,8 +462,9 @@ Response.redirect = function(url, status) { } export var DOMException = global.DOMException - -if (typeof DOMException !== 'function') { +try { + new DOMException() +} catch (err) { DOMException = function(message, name) { this.message = message this.name = name