diff --git a/src/core/helpers/promise.js b/src/core/helpers/promise.js index 59f1087f563eeac8dfa198a79977d121e6a02a57..f237401716314169a5774693c26ecd0e50d5a9e0 100644 --- a/src/core/helpers/promise.js +++ b/src/core/helpers/promise.js @@ -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( @@ -67,7 +67,7 @@ export function promisify (name, api) { }) ) } - } catch (e) {} + } })) } }