提交 14dbac4f 编写于 作者: fxy060608's avatar fxy060608

fix #380

上级 357e984b
...@@ -55,9 +55,9 @@ export function promisify (name, api) { ...@@ -55,9 +55,9 @@ export function promisify (name, api) {
api(Object.assign({}, options, { api(Object.assign({}, options, {
success: resolve, success: resolve,
fail: reject fail: reject
}), ...params) }), ...params)
/* eslint-disable no-extend-native */ if (!Promise.prototype.finally) {
try { /* eslint-disable no-extend-native */
Promise.prototype.finally = function (callback) { Promise.prototype.finally = function (callback) {
const promise = this.constructor const promise = this.constructor
return this.then( return this.then(
...@@ -67,7 +67,7 @@ export function promisify (name, api) { ...@@ -67,7 +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.
先完成此消息的编辑!
想要评论请 注册