We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0dcd85 commit e329852Copy full SHA for e329852
1 file changed
fetch.js
@@ -455,9 +455,8 @@ Response.redirect = function(url, status) {
455
}
456
457
export var DOMException = global.DOMException
458
-try {
459
- new DOMException()
460
-} catch (err) {
+
+if (typeof DOMException !== 'function') {
461
DOMException = function(message, name) {
462
this.message = message
463
this.name = name
0 commit comments