Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed May 13, 2019
1 parent 357e984 commit 14dbac4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/helpers/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export function promisify (name, api) {
api(Object.assign({}, options, {
success: resolve,
fail: reject
}), ...params)
/* eslint-disable no-extend-native */
try {
}), ...params)
if (!Promise.prototype.finally) {
/* eslint-disable no-extend-native */
Promise.prototype.finally = function (callback) {
const promise = this.constructor
return this.then(
Expand All @@ -67,7 +67,7 @@ export function promisify (name, api) {
})
)
}
} catch (e) {}
}
}))
}
}

0 comments on commit 14dbac4

Please sign in to comment.