mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-24 02:04:23 +08:00
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:
@@ -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
Reference in New Issue
Block a user