fix(core): use internal promise for iOS

promise.js polyfill for iOS lead to memory leak, change it to internal implementation on promise-supported iOS system
This commit is contained in:
zoomchan-cxj
2021-04-07 17:44:50 +08:00
parent f5ca629422
commit d63cf60ca9
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -312,6 +312,6 @@ Promise.prototype['catch'] = function (onRejected) {
return this.then(null, onRejected);
};
global.Promise = Promise;
global.Promise = global.Promise || Promise;
/* eslint-disable */
File diff suppressed because one or more lines are too long