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 5f60544 commit 53bd3bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/helpers/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function promisify (name, api) {
fail: reject
}), ...params)
/* eslint-disable no-extend-native */
try {
if (!Promise.prototype.finally) {
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 53bd3bd

Please sign in to comment.