提交 357e984b 编写于 作者: fxy060608's avatar fxy060608

fix #380

上级 f290bead
......@@ -57,6 +57,7 @@ export function promisify (name, api) {
fail: reject
}), ...params)
/* eslint-disable no-extend-native */
try {
Promise.prototype.finally = function (callback) {
const promise = this.constructor
return this.then(
......@@ -66,6 +67,7 @@ export function promisify (name, api) {
})
)
}
} catch (e) {}
}))
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册