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