提交 0ebc0952 编写于 作者: J Jake Champion

Revert "Detect if DOMException exists via typeof instead of trying to call it...

Revert "Detect if DOMException exists via typeof instead of trying to call it and catching the exception which may get thrown"

This reverts commit e3298525.
上级 259dc6ad
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册